Author: Armin Rigo <[email protected]>
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)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to