Skip to content

Commit 9271a29

Browse files
author
tim.peters
committed
newIobject(): repaired incorrect cast to quiet MSVC warning.
git-svn-id: http://svn.python.org/projects/python/trunk@52377 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 9449648 commit 9271a29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/cStringIO.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ newIobject(PyObject *s) {
657657
char *buf;
658658
Py_ssize_t size;
659659

660-
if (PyObject_AsCharBuffer(s, (const void **)&buf, &size) != 0)
660+
if (PyObject_AsCharBuffer(s, (const char **)&buf, &size) != 0)
661661
return NULL;
662662

663663
self = PyObject_New(Iobject, &Itype);

0 commit comments

Comments
 (0)