[pypy-commit] pypy bigint-with-int: Do overflow ops with just one long and one int instead of two longs.

stian noreply at buildbot.pypy.org
Sat Aug 3 22:37:13 CEST 2013


Author: stian
Branch: bigint-with-int
Changeset: r65941:ed316c19db44
Date: 2013-08-03 18:46 +0200
http://bitbucket.org/pypy/pypy/changeset/ed316c19db44/

Log:	Do overflow ops with just one long and one int instead of two longs.

diff --git a/pypy/objspace/std/longobject.py b/pypy/objspace/std/longobject.py
--- a/pypy/objspace/std/longobject.py
+++ b/pypy/objspace/std/longobject.py
@@ -393,8 +393,7 @@
         from pypy.objspace.std.smalllongobject import %(opname)s_ovr
         return %(opname)s_ovr(space, w_int1, w_int2)
     w_long1 = delegate_Int2Long(space, w_int1)
-    w_long2 = delegate_Int2Long(space, w_int2)
-    return %(opname)s__Long_Long(space, w_long1, w_long2)
+    return %(opname)s__Long_Int(space, w_long1, w_int2)
 """ % {'opname': opname}, '', 'exec')
 
     getattr(model.MM, opname).register(globals()['%s_ovr__Int_Int' % opname],


More information about the pypy-commit mailing list