rperl
rperl copied to clipboard
Test RPerl/Test/Operator05BitwiseNegation/program_01_good.pl assumes 64-bit ints
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.
Perhaps it is useful to mention that on my machine, this prints a blank line:
perl -MConfig -E'say $Config{use64bitint}'