[pypy-svn] pypy default: Translation fix

amauryfa commits-noreply at bitbucket.org
Wed Mar 23 19:06:14 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r42880:c2b4e2be8d51
Date: 2011-03-23 17:17 +0100
http://bitbucket.org/pypy/pypy/changeset/c2b4e2be8d51/

Log:	Translation fix

diff --git a/pypy/module/cpyext/longobject.py b/pypy/module/cpyext/longobject.py
--- a/pypy/module/cpyext/longobject.py
+++ b/pypy/module/cpyext/longobject.py
@@ -181,6 +181,9 @@
 @cpython_api([CONST_STRING, rffi.SIZE_T, rffi.INT_real, rffi.INT_real], PyObject)
 def _PyLong_FromByteArray(space, bytes, n, little_endian, signed):
     s = rffi.charpsize2str(bytes, n)
+    little_endian = rffi.cast(lltype.Signed, little_endian)
+    signed = rffi.cast(lltype.Signed, signed)
+
     result = rbigint()
     negative = False
 


More information about the Pypy-commit mailing list