SGladys / mediacomp-jes

Automatically exported from code.google.com/p/mediacomp-jes
0 stars 0 forks source link

Overflow error in negating most negative int #59

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
min = int(-2147483648)  
-min

What is the expected output? What do you see instead?
Should be 2147483648L; is -2147483648
(JES or the underlying Jython fails to deal with the overflow that results from 
negating the most negative int by converting result to long)

What version of the product are you using? On what operating system?
JES 4.3 on MacOS 10.6

Please provide any additional information below.

Original issue reported on code.google.com by russell....@gordon.edu on 8 Sep 2012 at 6:55