[pypy-svn] r10810 - pypy/dist/pypy/objspace/std

pedronis at codespeak.net pedronis at codespeak.net
Mon Apr 18 13:51:49 CEST 2005


Author: pedronis
Date: Mon Apr 18 13:51:49 2005
New Revision: 10810

Modified:
   pypy/dist/pypy/objspace/std/longobject.py
Log:
a recent checkin undid this, it is needed to avoid floatval to become SomeObject




Modified: pypy/dist/pypy/objspace/std/longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/longobject.py	(original)
+++ pypy/dist/pypy/objspace/std/longobject.py	Mon Apr 18 13:51:49 2005
@@ -257,7 +257,7 @@
         raise OperationError(space.w_ZeroDivisionError,
                              space.wrap("long division"))
     z = x / y
-    return space.newfloat(z)
+    return space.newfloat(float(z))
 
 def floordiv__Long_Long(space, w_long1, w_long2): #YYYYYY
     x = w_long1.longval()



More information about the Pypy-commit mailing list