Emulate Javascript's 32bit signed integer arithmetic to C (or Perl) – some discrepancies
I am trying to translate simple JS code to C and/or Perl but I found a discrepancy in behaviour when doing arithmetic operations (+ - * / << >>) on integers and the result overflows. I need to simulate JS…