kaz wrote:
Hello,
I 'm using linux and gcc version 4.3.2, compiled svn version seems to hang on this loop
for( i=0; i<= 0xC0000000; i+= 0x20000000 )
i think it has something to do with the fact that
unsigned 0xC0000000 is 3221225472 and the same value in signed int i is -1073741824
I'm not 100% sure I'm right about that, but it looks like it is working with "i" type changed to unsigned int
It may be that gcc 4.2 treats this as an unsigned comparison but 4.3 does a signed comparison - either way you're right that i should be unsigned. Fixed in r1000
Thanks for the finding this
Cheers,
Nathan