diff options
author | Thomas Heller <theller@ctypes.org> | 2006-04-12 19:07:36 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-04-12 19:07:36 (GMT) |
commit | 55d031ef23ac8f6e7cfe823f62c9e4f627e7b431 (patch) | |
tree | 421d01d27720b3342bac5dcb6946189710a699f9 /Modules | |
parent | 8920bf24f8eeaf6e8683fd5461b2c1baad325e63 (diff) | |
download | cpython-55d031ef23ac8f6e7cfe823f62c9e4f627e7b431.zip cpython-55d031ef23ac8f6e7cfe823f62c9e4f627e7b431.tar.gz cpython-55d031ef23ac8f6e7cfe823f62c9e4f627e7b431.tar.bz2 |
Fix for a bug found by Armin Rigo, plus test.
https://sourceforge.net/tracker/?func=detail&atid=532154&aid=1467852&group_id=71702
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index bcb179e..d751841 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -548,7 +548,7 @@ PointerType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) return NULL; stgdict->size = sizeof(void *); stgdict->align = getentry("P")->pffi_type->alignment; - stgdict->length = 2; + stgdict->length = 1; stgdict->ffi_type = ffi_type_pointer; proto = PyDict_GetItemString(typedict, "_type_"); /* Borrowed ref */ |