[pypy-svn] r73346 - pypy/branch/cpython-extension/pypy/module/cpyext
trundle at codespeak.net
trundle at codespeak.net
Sun Apr 4 02:50:52 CEST 2010
Author: trundle
Date: Sun Apr 4 02:50:50 2010
New Revision: 73346
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/structmember.py
Log:
rpythonify T_CHAR
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/structmember.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/structmember.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/structmember.py Sun Apr 4 02:50:50 2010
@@ -78,7 +78,7 @@
raise OperationError(space.w_TypeError,
space.wrap("string of length 1 expected"))
array = rffi.cast(rffi.CCHARP, addr)
- array[0] = str_value
+ array[0] = str_value[0]
elif member_type in [structmemberdefs.T_OBJECT,
structmemberdefs.T_OBJECT_EX]:
array = rffi.cast(PyObjectP, addr)
More information about the Pypy-commit
mailing list