projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb4b738
)
Fix compilation warning.
author
Georg Brandl
<georg@python.org>
Wed, 8 Aug 2007 13:50:04 +0000
(13:50 +0000)
committer
Georg Brandl
<georg@python.org>
Wed, 8 Aug 2007 13:50:04 +0000
(13:50 +0000)
(backport from rev. 56833)
Modules/cStringIO.c
patch
|
blob
|
history
diff --git
a/Modules/cStringIO.c
b/Modules/cStringIO.c
index 2d8a6abd76bcd49420aa035a225140b570adc129..a6fad9cbf37908e59cdb972325d1e9aa7912b8b2 100644
(file)
--- a/
Modules/cStringIO.c
+++ b/
Modules/cStringIO.c
@@
-665,7
+665,7
@@
newIobject(PyObject *s) {
char *buf;
Py_ssize_t size;
- if (PyObject_AsReadBuffer(s, (const
char
**)&buf, &size)) {
+ if (PyObject_AsReadBuffer(s, (const
void
**)&buf, &size)) {
PyErr_Format(PyExc_TypeError, "expected read buffer, %.200s found",
s->ob_type->tp_name);
return NULL;