]> granicus.if.org Git - python/commitdiff
Use Py_TYPE() instead of ->ob_type
authorChristian Heimes <christian@cheimes.de>
Wed, 23 Jan 2008 14:00:25 +0000 (14:00 +0000)
committerChristian Heimes <christian@cheimes.de>
Wed, 23 Jan 2008 14:00:25 +0000 (14:00 +0000)
Modules/mmapmodule.c

index 09e94653d80057a42d30eb345e99ca31e5a6a262..bc153c96a6c03a0fd27af2fcba21bfa71965e8b0 100644 (file)
@@ -129,7 +129,7 @@ mmap_object_dealloc(mmap_object *m_obj)
        }
 #endif /* UNIX */
 
-       m_obj->ob_type->tp_free((PyObject*)m_obj);
+       Py_TYPE(m_obj)->tp_free((PyObject*)m_obj);
 }
 
 static PyObject *