[pypy-svn] pypy fast-forward: Translation fix.

amauryfa commits-noreply at bitbucket.org
Wed Dec 29 21:31:30 CET 2010


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40268:5f0dfa8514dd
Date: 2010-12-29 21:32 +0100
http://bitbucket.org/pypy/pypy/changeset/5f0dfa8514dd/

Log:	Translation fix.

diff --git a/pypy/module/_rawffi/structure.py b/pypy/module/_rawffi/structure.py
--- a/pypy/module/_rawffi/structure.py
+++ b/pypy/module/_rawffi/structure.py
@@ -28,7 +28,7 @@
         if len_l == 2:
             bitsize = 0
         elif len_l == 3:
-            bitsize = l_w[2]
+            bitsize = space.int_w(l_w[2])
         else:
             raise OperationError(space.w_ValueError, space.wrap(
                 "Expected list of 2- or 3-size tuples"))


More information about the Pypy-commit mailing list