From fbbfb4b976dcbeed8e3e5acde1be182449e43178 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Wed, 18 Oct 2006 05:30:25 +0000 Subject: [PATCH] C:\Code\python>type c.txt Merge rev 52377 from trunk: newIobject(): repaired incorrect cast to quiet MSVC warning. --- Modules/cStringIO.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 03ef461602..100891ba4a 100644 --- a/Modules/cStringIO.c +++ b/Modules/cStringIO.c @@ -657,7 +657,7 @@ newIobject(PyObject *s) { char *buf; Py_ssize_t size; - if (PyObject_AsCharBuffer(s, (const void **)&buf, &size) != 0) + if (PyObject_AsCharBuffer(s, (const char **)&buf, &size) != 0) return NULL; self = PyObject_New(Iobject, &Itype); -- 2.50.1