Author: Antonio Cuni <anto.c...@gmail.com> Branch: ffistruct Changeset: r47180:1d749ac82a53 Date: 2011-09-09 11:51 +0200 http://bitbucket.org/pypy/pypy/changeset/1d749ac82a53/
Log: fix the _ffi module to use the new interface exposed by libffi diff --git a/pypy/module/_ffi/interp_struct.py b/pypy/module/_ffi/interp_struct.py --- a/pypy/module/_ffi/interp_struct.py +++ b/pypy/module/_ffi/interp_struct.py @@ -114,7 +114,7 @@ assert w_ffitype is app_types.slong # XXX: handle all cases FIELD_TYPE = rffi.LONG # - value = libffi.struct_getfield(FIELD_TYPE, self.rawmem, offset) + value = libffi.struct_getfield_int(w_ffitype.ffitype, self.rawmem, offset) return space.wrap(value) @unwrap_spec(name=str) @@ -124,7 +124,7 @@ FIELD_TYPE = rffi.LONG value = space.int_w(w_value) # - libffi.struct_setfield(FIELD_TYPE, self.rawmem, offset, value) + libffi.struct_setfield_int(w_ffitype.ffitype, self.rawmem, offset, value) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit