[pypy-commit] pypy py3.5: fix translation
rlamy
pypy.commits at gmail.com
Wed Jan 18 15:04:32 EST 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r89668:8a00871322e3
Date: 2017-01-18 20:03 +0000
http://bitbucket.org/pypy/pypy/changeset/8a00871322e3/
Log: fix translation
diff --git a/pypy/module/cpyext/import_.py b/pypy/module/cpyext/import_.py
--- a/pypy/module/cpyext/import_.py
+++ b/pypy/module/cpyext/import_.py
@@ -56,6 +56,7 @@
PyObject *name, PyObject *given_globals, PyObject *locals,
PyObject *given_fromlist, int level)''', cts)
def PyImport_ImportModuleLevelObject(space, w_name, w_glob, w_loc, w_fromlist, level):
+ level = rffi.cast(lltype.Signed, level)
if w_glob is None:
w_glob = space.newdict()
else:
More information about the pypy-commit
mailing list