[pypy-svn] r50339 - pypy/branch/applevel-ctypes/pypy/module/_ffi

fijal at codespeak.net fijal at codespeak.net
Fri Jan 4 21:44:59 CET 2008


Author: fijal
Date: Fri Jan  4 21:44:57 2008
New Revision: 50339

Modified:
   pypy/branch/applevel-ctypes/pypy/module/_ffi/structure.py
Log:
One needed fix.


Modified: pypy/branch/applevel-ctypes/pypy/module/_ffi/structure.py
==============================================================================
--- pypy/branch/applevel-ctypes/pypy/module/_ffi/structure.py	(original)
+++ pypy/branch/applevel-ctypes/pypy/module/_ffi/structure.py	Fri Jan  4 21:44:57 2008
@@ -144,7 +144,8 @@
         return space.wrap(rffi.cast(rffi.INT, self.ll_buffer))
 
 def descr_new_structure_instance(space, w_type, w_shape, w_adr, w_fieldinits):
-    return W_StructureInstance(space, w_shape, w_adr, w_fieldinits)
+    fieldinits_w = space.unpackiterable(w_fieldinits)
+    return W_StructureInstance(space, w_shape, w_adr, fieldinits_w)
 
 W_StructureInstance.typedef = TypeDef(
     'StructureInstance',



More information about the Pypy-commit mailing list