]> granicus.if.org Git - python/commitdiff
Rename remaining StgDictObject's ffi_type fields to ffi_type_pointer.
authorThomas Heller <theller@ctypes.org>
Tue, 18 Apr 2006 20:09:27 +0000 (20:09 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 18 Apr 2006 20:09:27 +0000 (20:09 +0000)
Modules/_ctypes/callproc.c

index 9420c23bcd1993f9949b21b9e75ec9566b0133f5..8163f49c2b76e407429c50036ae84090158b213e 100644 (file)
@@ -581,10 +581,10 @@ ffi_type *GetType(PyObject *obj)
        /* This little trick works correctly with MSVC.
           It returns small structures in registers
        */
-       if (dict->ffi_type.type == FFI_TYPE_STRUCT) {
-               if (dict->ffi_type.size <= 4)
+       if (dict->ffi_type_pointer.type == FFI_TYPE_STRUCT) {
+               if (dict->ffi_type_pointer.size <= 4)
                        return &ffi_type_sint32;
-               else if (dict->ffi_type.size <= 8)
+               else if (dict->ffi_type_pointer.size <= 8)
                        return &ffi_type_sint64;
        }
 #endif