1. Armin Rigo
  2. cpython-withatomic

Commits

Christian Heimes  committed 911c87f

Silence a compiler warning

  • Participants
  • Parent commits f4064b5
  • Branches default

Comments (0)

Files changed (1)

File Modules/_ctypes/_ctypes.c

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