commit | 5fdea681074a2af6e1ddef9f911065dbcd42726e | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Tue May 06 23:15:46 2008 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Tue May 06 23:15:46 2008 +0000 |
tree | b902661bbc6b4cccd65480a74be418e3c6b26c0d | |
parent | 2ef32f24c8098c7a8ef6a93813ea6a9053ad86e6 [diff] |
Silence a compiler warning
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 79fc6c8..98c609c 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c
@@ -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) {