[pypy-svn] r45410 - in pypy/dist/pypy/translator/jvm: . test

pdg at codespeak.net pdg at codespeak.net
Fri Jul 27 20:04:30 CEST 2007


Author: pdg
Date: Fri Jul 27 20:04:26 2007
New Revision: 45410

Modified:
   pypy/dist/pypy/translator/jvm/generator.py
   pypy/dist/pypy/translator/jvm/test/test_overflow.py
Log:
translator/jvm - fixed overflow detection for subtraction.  It was just a typo on my part.  Thanks anto for removing the need for check. (pdg)

Modified: pypy/dist/pypy/translator/jvm/generator.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/generator.py	(original)
+++ pypy/dist/pypy/translator/jvm/generator.py	Fri Jul 27 20:04:26 2007
@@ -372,8 +372,8 @@
 LNEGOVF =               Method.s(jPyPy, 'negate_ovf', (jLong,), jLong)
 IADDOVF =               Method.s(jPyPy, 'add_ovf', (jInt, jInt), jInt)
 LADDOVF =               Method.s(jPyPy, 'add_ovf', (jLong, jLong), jLong)
-ISUBOVF =               Method.s(jPyPy, 'sub_ovf', (jInt, jInt), jInt)
-LSUBOVF =               Method.s(jPyPy, 'sub_ovf', (jLong, jLong), jLong)
+ISUBOVF =               Method.s(jPyPy, 'subtract_ovf', (jInt, jInt), jInt)
+LSUBOVF =               Method.s(jPyPy, 'subtract_ovf', (jLong, jLong), jLong)
 IMULOVF =               Method.s(jPyPy, 'multiply_ovf', (jInt, jInt), jInt)
 LMULOVF =               Method.s(jPyPy, 'multiply_ovf', (jLong, jLong), jLong)
 MATHFLOOR =             Method.s(jMath, 'floor', (jDouble,), jDouble)

Modified: pypy/dist/pypy/translator/jvm/test/test_overflow.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/test/test_overflow.py	(original)
+++ pypy/dist/pypy/translator/jvm/test/test_overflow.py	Fri Jul 27 20:04:26 2007
@@ -3,8 +3,8 @@
 from pypy.translator.oosupport.test_template.overflow import BaseTestOverflow
 
 class TestOverflow(BaseTestOverflow, JvmTest):
-    def test_sub(self):
-        py.test.skip('fixme!')
+    #def test_sub(self):
+    #    py.test.skip('fixme!')
 
     def test_lshift(self):
         py.test.skip('fixme!')



More information about the Pypy-commit mailing list