R
Robert Samelson
unsigned x = 0;
if(x-- < 4)
printf("foo\n");
else
printf("bar\n");
GCC for Data General Aviion 5000 (an 88000 machine) will convert this
into:
unsigned x = 0;
if(--x < 3) ....
in the assembly.
This seems broken if x == ~0.
if(x-- < 4)
printf("foo\n");
else
printf("bar\n");
GCC for Data General Aviion 5000 (an 88000 machine) will convert this
into:
unsigned x = 0;
if(--x < 3) ....
in the assembly.
This seems broken if x == ~0.