]> granicus.if.org Git - python/commitdiff
http://bugs.python.org/issue6836
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Mon, 28 Sep 2009 15:56:25 +0000 (15:56 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Mon, 28 Sep 2009 15:56:25 +0000 (15:56 +0000)
A missing 'const' wasn't detected by Visual Studio.

Objects/obmalloc.c

index b2c053f2f4bb3345fa09bd705701a846b7c9897d..9cf90c418e2bdafcfeda187c40dc80663415adb2 100644 (file)
@@ -1369,7 +1369,7 @@ _PyObject_DebugFree(void *p)
        _PyObject_DebugFreeApi(_PYMALLOC_OBJ_ID, p);
 }
 void
-_PyObject_DebugCheckAddress(void *p)
+_PyObject_DebugCheckAddress(const void *p)
 {
        _PyObject_DebugCheckAddressApi(_PYMALLOC_OBJ_ID, p);
 }