[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo)

arigo pypy.commits at gmail.com
Wed Oct 11 09:41:48 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-avoid-roundtrip
Changeset: r92719:a2e018841ca5
Date: 2017-10-11 15:03 +0200
http://bitbucket.org/pypy/pypy/changeset/a2e018841ca5/

Log:	(antocuni, arigo)

	Ha ha ha argh 32-bit translations

diff --git a/pypy/module/cpyext/intobject.py b/pypy/module/cpyext/intobject.py
--- a/pypy/module/cpyext/intobject.py
+++ b/pypy/module/cpyext/intobject.py
@@ -35,7 +35,7 @@
         # value. However, it's just easier to call PyInt_FromLong with a dummy
         # value; make sure it's big enough to avoid the smallint optimization
         # (if it will ever be enabled)
-        return state.C.PyInt_FromLong(0xDEADBEEF)
+        return state.C.PyInt_FromLong(0x0DEADBEE)
     else:
         return BaseCpyTypedescr.allocate(typedescr, space, w_type, itemcount)
 


More information about the pypy-commit mailing list