[pypy-svn] r75811 - pypy/branch/fast-forward/pypy/objspace/std

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 3 01:36:37 CEST 2010


Author: benjamin
Date: Sat Jul  3 01:36:36 2010
New Revision: 75811

Modified:
   pypy/branch/fast-forward/pypy/objspace/std/floatobject.py
Log:
fix spelling

Modified: pypy/branch/fast-forward/pypy/objspace/std/floatobject.py
==============================================================================
--- pypy/branch/fast-forward/pypy/objspace/std/floatobject.py	(original)
+++ pypy/branch/fast-forward/pypy/objspace/std/floatobject.py	Sat Jul  3 01:36:36 2010
@@ -475,15 +475,15 @@
         float_part *= 2.0
         exp -= 1
     w_num = W_LongObject.fromfloat(float_part)
-    w_dem = space.newlong(1)
+    w_den = space.newlong(1)
     w_exp = space.newlong(abs(exp))
-    w_exp = space.lshift(w_dem, w_exp)
+    w_exp = space.lshift(w_den, w_exp)
     if exp > 0:
         w_num = space.mul(w_num, w_exp)
     else:
-        w_dem = w_exp
+        w_den = w_exp
     # Try to return int.
-    return space.newtuple([space.int(w_num), space.int(w_dem)])
+    return space.newtuple([space.int(w_num), space.int(w_den)])
 
 from pypy.objspace.std import floattype
 register_all(vars(), floattype)



More information about the Pypy-commit mailing list