Commits

Christian Heimes committed 911c87f

Silence a compiler warning

Comments (0)

Files changed (1)

Modules/_ctypes/_ctypes.c

 			      &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) {