summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-09 07:59:43 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-06-09 07:59:43 (GMT)
commiteefa964932f2ed3b27cdac546022efe682896237 (patch)
tree7cd8a5f9216361e026731f97c16c492ccb9847ec
parent0163d6d6ef85dd0cd0ea4ea6dce4b867e39cd6b9 (diff)
downloadcpython-eefa964932f2ed3b27cdac546022efe682896237.zip
cpython-eefa964932f2ed3b27cdac546022efe682896237.tar.gz
cpython-eefa964932f2ed3b27cdac546022efe682896237.tar.bz2
Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*.
This fixes bug #431557.
-rw-r--r--Include/cStringIO.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cStringIO.h b/Include/cStringIO.h
index 8aff2e3..cb8f337 100644
--- a/Include/cStringIO.h
+++ b/Include/cStringIO.h
@@ -126,6 +126,6 @@ xxxPyCObject_Import(char *module_name, char *name)
}
#define PycString_IMPORT \
- PycStringIO=xxxPyCObject_Import("cStringIO", "cStringIO_CAPI")
+ PycStringIO=(struct PycStringIO_CAPI*)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI")
#endif /* CSTRINGIO_INCLUDED */