rperl icon indicating copy to clipboard operation
rperl copied to clipboard

Test RPerl/Test/Operator05BitwiseNegation/program_01_good.pl assumes 64-bit ints

Open run4flat opened this issue 9 years ago • 1 comments

When running RPerl/Test/Operator05BitwiseNegation/program_01_good.pl, the output on my machine is:

have $foo = 0
have $bar = 1
have $bat = 4294967295
have $baz = 4294967294
have $foo = 4294967290
have $bar = 4294967289
have $bat = 5
have $baz = 4294967294
have $bax = 4294967290

This is, of course, different from the expected result in the script file. Does RPerl use data types with unspecified widths? It seems like a type of uint_64, rather than uint (or whatever it uses) would solve this problem.

run4flat avatar May 18 '16 16:05 run4flat

Perhaps it is useful to mention that on my machine, this prints a blank line: perl -MConfig -E'say $Config{use64bitint}'

run4flat avatar May 18 '16 16:05 run4flat