From eefa964932f2ed3b27cdac546022efe682896237 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 9 Jun 2001 07:59:43 +0000 Subject: [PATCH] Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*. This fixes bug #431557. --- Include/cStringIO.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/cStringIO.h b/Include/cStringIO.h index 8aff2e32eb..cb8f337f6e 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 */ -- 2.49.0