From 07347d6efc84f06e65c0e55b8906a8e6579bfc4a Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 6 Jun 2006 11:54:32 +0000 Subject: Damn - the sentinel was missing. And fix another silly mistake. --- Modules/_ctypes/cfield.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12