There is no magic to sprinkle over an algorithm that relies on 32-bit integers to make it behave with other integer sizes. The hardcoded numbers here are magic for 32-bit numbers:
$num = $num - 4294967296 if $num > 4294967295; $num = $num + 4294967296 if $num < -2147483648;
You will have to understand the algorithm involved to be able to make the required changes. Alternatively, you can run the program under a Perl compiled with 32-bit integers.
In reply to Re^3: emulate 32-bit on perl 64
by Corion
in thread emulate 32-bit on perl 64
by loofort
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |