]> granicus.if.org Git - python/commitdiff
Damn - the sentinel was missing. And fix another silly mistake.
authorThomas Heller <theller@ctypes.org>
Tue, 6 Jun 2006 11:54:32 +0000 (11:54 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 6 Jun 2006 11:54:32 +0000 (11:54 +0000)
Modules/_ctypes/cfield.c

index 17711c2b6b700c36dc533e984d38186603930b42..ae0290f47729cb15f283caa904d56acea1477b2f 100644 (file)
@@ -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