[Python-3000-checkins] r62791 - python/branches/py3k/Modules/_ctypes/_ctypes.c

christian.heimes python-3000-checkins at python.org
Wed May 7 01:15:46 CEST 2008


Author: christian.heimes
Date: Wed May  7 01:15:46 2008
New Revision: 62791

Log:
Silence a compiler warning

Modified:
   python/branches/py3k/Modules/_ctypes/_ctypes.c

Modified: python/branches/py3k/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/branches/py3k/Modules/_ctypes/_ctypes.c	(original)
+++ python/branches/py3k/Modules/_ctypes/_ctypes.c	Wed May  7 01:15:46 2008
@@ -490,7 +490,7 @@
 			      &obj, &offset))
 		return NULL;
 
-	if (-1 == PyObject_AsReadBuffer(obj, &buffer, &buffer_len))
+	if (-1 == PyObject_AsReadBuffer(obj, (const void**)&buffer, &buffer_len))
 		return NULL;
 
 	if (offset < 0) {


More information about the Python-3000-checkins mailing list