[pypy-commit] cffi cpy-extension: Forgot a '( )'.

arigo noreply at buildbot.pypy.org
Thu Jun 14 10:08:28 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: cpy-extension
Changeset: r319:d55b386cc489
Date: 2012-06-14 10:08 +0200
http://bitbucket.org/cffi/cffi/changeset/d55b386cc489/

Log:	Forgot a '( )'.

diff --git a/cffi/verifier.py b/cffi/verifier.py
--- a/cffi/verifier.py
+++ b/cffi/verifier.py
@@ -335,8 +335,8 @@
             prnt('  else if ((%s) < 0)' % (name,))
             prnt('    o = PyLong_FromLongLong((long long)(%s));' % (name,))
             prnt('  else')
-            prnt('    o = PyLong_FromUnsignedLongLong((unsigned long long)%s);'
-                 % (name,))
+            prnt('    o = PyLong_FromUnsignedLongLong('
+                 '(unsigned long long)(%s));' % (name,))
         prnt('  if (o == NULL)')
         prnt('    return -1;')
         prnt('  res = PyDict_SetItemString(dct, "%s", o);' % name)


More information about the pypy-commit mailing list