[pypy-svn] r26176 - pypy/dist/pypy/rpython/rctypes

arigo at codespeak.net arigo at codespeak.net
Sun Apr 23 12:11:45 CEST 2006


Author: arigo
Date: Sun Apr 23 12:11:44 2006
New Revision: 26176

Modified:
   pypy/dist/pypy/rpython/rctypes/afunc.py
Log:
Typos.  Of course, it's untested code :-/


Modified: pypy/dist/pypy/rpython/rctypes/afunc.py
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/afunc.py	(original)
+++ pypy/dist/pypy/rpython/rctypes/afunc.py	Sun Apr 23 12:11:44 2006
@@ -52,10 +52,10 @@
                 if not isinstance(s_arg, SomeCTypesObject):
                     # accept integers, strings, or None
                     if isinstance(s_arg, annmodel.SomeInteger):
-                        r_arg = repr_for_ctype(c_long)
+                        r_arg = repr_for_ctype(ctypes.c_long)
                     elif (isinstance(s_arg, annmodel.SomeString)
                           or s_arg == annmodel.s_None):
-                        r_arg = repr_for_ctype(c_char_p)
+                        r_arg = repr_for_ctype(ctypes.c_char_p)
                     else:
                         raise TyperError("call with no argtypes: don't know "
                                          "how to convert argument %r"%(s_arg,))



More information about the Pypy-commit mailing list