[ctypes-commit] ctypes/source stgdict.c,1.30,1.31
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-02-10 09:18:45
|
Update of /cvsroot/ctypes/ctypes/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17760 Modified Files: stgdict.c Log Message: Fix a GCC compiler warning. Index: stgdict.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/stgdict.c,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** stgdict.c 10 Feb 2005 09:10:59 -0000 1.30 --- stgdict.c 10 Feb 2005 09:18:37 -0000 1.31 *************** *** 225,229 **** PyMem_Free(stgdict->ffi_type.elements); ! basedict = PyType_stgdict(((PyTypeObject *)type)->tp_base); if (basedict && !use_broken_old_ctypes_semantics) { size = offset = basedict->size; --- 225,229 ---- PyMem_Free(stgdict->ffi_type.elements); ! basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); if (basedict && !use_broken_old_ctypes_semantics) { size = offset = basedict->size; |