I have the following code:
while( int()(uStartFrame - iFrameOffset) < 1)
{
iFrameOffset--;
}
uStartFrame and iFrameOffset are both unsigned long, so the < statement is a little difficult, I think. However, I thought that I fixed it using int(). But the loop runs infinitively, so I guess it doesn't work.
Can somebody help?
Thank you!
Or even better
The last line also shows the possible error. If
uStartFrame
is0
, then there's nounsigned long
variablex
that can fulfiluStartFrame == x + 1
.