[pypy-svn] pypy jit-longlong: Translation fixes.

arigo commits-noreply at bitbucket.org
Sun Jan 9 16:03:24 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-longlong
Changeset: r40526:2d976e4cc03b
Date: 2011-01-09 16:04 +0100
http://bitbucket.org/pypy/pypy/changeset/2d976e4cc03b/

Log:	Translation fixes.

diff --git a/pypy/objspace/std/smalllongobject.py b/pypy/objspace/std/smalllongobject.py
--- a/pypy/objspace/std/smalllongobject.py
+++ b/pypy/objspace/std/smalllongobject.py
@@ -14,7 +14,7 @@
 from pypy.objspace.std.noneobject import W_NoneObject
 from pypy.interpreter.error import OperationError
 
-LONGLONG_MIN = (-1) << (LONGLONG_BIT-1)
+LONGLONG_MIN = r_longlong((-1) << (LONGLONG_BIT-1))
 
 
 class W_SmallLongObject(W_Object):

diff --git a/pypy/jit/backend/x86/runner.py b/pypy/jit/backend/x86/runner.py
--- a/pypy/jit/backend/x86/runner.py
+++ b/pypy/jit/backend/x86/runner.py
@@ -13,6 +13,7 @@
 class AbstractX86CPU(AbstractLLCPU):
     debug = True
     supports_floats = True
+    supports_longlong = True
 
     BOOTSTRAP_TP = lltype.FuncType([], lltype.Signed)
     dont_keepalive_stuff = False # for tests


More information about the Pypy-commit mailing list