set I2, -2147483648
print I2
print "\\n"
set I3, 4294967295
print I3
print "\\n"
end
CODE
305419896
-1698898191
2147483647
-2147483648
-1
OUTPUT
I think that especting 4294967295 == -1 because they have the same
bit pattern ( on two's complement 32 bit machines ) is wrong
Regards
Mattia
- Re: t/op/integer.t is IMHO wrong Mattia Barbon
- Re: t/op/integer.t is IMHO wrong Damien Neil
- Re: t/op/integer.t is IMHO wrong Simon Cozens
- Re: t/op/integer.t is IMHO wrong Dan Sugalski
- Re: t/op/integer.t is IMHO wrong Damien Neil
- Re: t/op/integer.t is IMHO wrong Ask Bjoern Hansen
