I''ve got this while loop:
int freeblocks = 2;
while(1)
{
if(freeblocks > 0)
{
freeblocks--;
WriteCrapToVCPPDebug("test\n");
}
}
how come freeblocks > 0 is ALWAYS True while it loops even though freeblocks--; should make freeblocks <= 0 after two iterations?
I''ve tried making freeblocks an unsigned int, that didn''t work.
I also tried replacing freeblocks--; with:
if(freeblocks==1)
freeblocks=0;
if(freeblocks==2)
freeblocks=1;
and the if(freeblocks>0) is still always true.
Thanks,
Matt
Matt Carpenter
Founder and CEO of nothing!
Deviantart | My Site