diff options
-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 |