[pypy-svn] r77526 - pypy/trunk/lib_pypy/_ctypes
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 1 16:18:53 CEST 2010
Author: arigo
Date: Fri Oct 1 16:18:51 2010
New Revision: 77526
Modified:
pypy/trunk/lib_pypy/_ctypes/function.py
Log:
Minimal fix.
Modified: pypy/trunk/lib_pypy/_ctypes/function.py
==============================================================================
--- pypy/trunk/lib_pypy/_ctypes/function.py (original)
+++ pypy/trunk/lib_pypy/_ctypes/function.py Fri Oct 1 16:18:51 2010
@@ -171,7 +171,7 @@
return self._build_result(restype, resbuffer, argtypes, argsandobjs)
def _getfuncptr(self, argtypes, restype, thisarg=None):
- if self._ptr is not None:
+ if self._ptr is not None and argtypes is self._argtypes_:
return self._ptr
if restype is None or not isinstance(restype, _CDataMeta):
import ctypes
More information about the Pypy-commit
mailing list