[pypy-commit] pypy win-ordinal: Fix for posix platforms
amauryfa
noreply at buildbot.pypy.org
Thu Jun 7 00:37:55 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: win-ordinal
Changeset: r55452:b2f3a762e5aa
Date: 2012-06-06 23:01 +0200
http://bitbucket.org/pypy/pypy/changeset/b2f3a762e5aa/
Log: Fix for posix platforms
diff --git a/pypy/module/_ffi/interp_funcptr.py b/pypy/module/_ffi/interp_funcptr.py
--- a/pypy/module/_ffi/interp_funcptr.py
+++ b/pypy/module/_ffi/interp_funcptr.py
@@ -45,7 +45,8 @@
space.wrap('function name must be a string or integer'))
else:
@unwrap_spec(name=str)
- def _getfunc(space, CDLL, name, w_argtypes, w_restype):
+ def _getfunc(space, CDLL, w_name, w_argtypes, w_restype):
+ name = space.str_w(w_name)
argtypes_w, argtypes, w_restype, restype = unpack_argtypes(space,
w_argtypes,
w_restype)
More information about the pypy-commit
mailing list