diff options
author | Thomas Heller <theller@ctypes.org> | 2006-06-06 11:54:32 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-06-06 11:54:32 (GMT) |
commit | 07347d6efc84f06e65c0e55b8906a8e6579bfc4a (patch) | |
tree | 4d8cd4483686c325026cbad7e839ad2e4548b25a /Modules | |
parent | ecc3e67b986a1eed404b528ccbc099049c149edb (diff) | |
download | cpython-07347d6efc84f06e65c0e55b8906a8e6579bfc4a.zip cpython-07347d6efc84f06e65c0e55b8906a8e6579bfc4a.tar.gz cpython-07347d6efc84f06e65c0e55b8906a8e6579bfc4a.tar.bz2 |
Damn - the sentinel was missing. And fix another silly mistake.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/cfield.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index 17711c2..ae0290f 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -229,7 +229,8 @@ CField_get_size(PyObject *self, void *data) static PyGetSetDef CField_getset[] = { { "offset", CField_get_offset, NULL, "offset in bytes of this field" }, - { "size", CField_get_offset, NULL, "size in bytes of this field" }, + { "size", CField_get_size, NULL, "size in bytes of this field" }, + { NULL, NULL, NULL, NULL }, }; static int |