[pypy-svn] r50357 - pypy/branch/applevel-ctypes2/pypy/module/_ffi

fijal at codespeak.net fijal at codespeak.net
Sat Jan 5 17:04:58 CET 2008


Author: fijal
Date: Sat Jan  5 17:04:54 2008
New Revision: 50357

Modified:
   pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py
Log:
Don't automatically cast byte and ubyte to string.


Modified: pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py
==============================================================================
--- pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py	(original)
+++ pypy/branch/applevel-ctypes2/pypy/module/_ffi/interp_ffi.py	Sat Jan  5 17:04:54 2008
@@ -257,7 +257,7 @@
                 return space.wrap(func(add_arg, argdesc, ll_type))
             elif c == 'f' or c == 'd':
                 return space.wrap(float(func(add_arg, argdesc, ll_type)))
-            elif c == 'c' or c == 'b' or c == 'B':
+            elif c == 'c':
                 return space.wrap(chr(rffi.cast(rffi.INT, func(add_arg, argdesc,
                                                                ll_type))))
             elif c == 'h' or c == 'H':



More information about the Pypy-commit mailing list