[pypy-svn] r51608 - pypy/dist/pypy/lib/_ctypes
fijal at codespeak.net
fijal at codespeak.net
Mon Feb 18 21:53:37 CET 2008
Author: fijal
Date: Mon Feb 18 21:53:36 2008
New Revision: 51608
Modified:
pypy/dist/pypy/lib/_ctypes/structure.py
Log:
Simplify a bit
Modified: pypy/dist/pypy/lib/_ctypes/structure.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/structure.py (original)
+++ pypy/dist/pypy/lib/_ctypes/structure.py Mon Feb 18 21:53:36 2008
@@ -178,8 +178,8 @@
except KeyError:
return _CData.__getattribute__(self, name)
offset = self.__class__._fieldtypes[name].offset
- return fieldtype._CData_output(self._subarray(fieldtype, name), self,
- offset)
+ suba = self._subarray(fieldtype, name)
+ return fieldtype._CData_output(suba, self, offset)
def _get_buffer_for_param(self):
return CArgObject(self._buffer.byptr())
More information about the Pypy-commit
mailing list