[GAP Forum] Intersection bug?
Yevgen Muntyan
muntyan at tamu.edu
Fri Jul 18 23:19:11 BST 2008
On Jul 18, 2008, at 14:54 , Laurent Bartholdi wrote:
> For those of you with 64-bit machines and/or other compilers: could
> you please run the following C code:
> ----------------------------------
> main () {
> printf("INTER_RANGE %sed on your computer\n", -1 > -1+1u ?
> "fail" : "succed");
> }
> ----------------------------------
It is what -Wsign-compare gcc flag is for, that code is
broken. -1's are converted to unsigned int, and so the
result is always true.
Best regards,
Yevgen
More information about the Forum
mailing list