Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eefa964

Browse files
committed
Cast the result of xxxPyCObject_Import to PycStringIO_CAPI*.
This fixes bug #431557.
1 parent 0163d6d commit eefa964

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/cStringIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ xxxPyCObject_Import(char *module_name, char *name)
126126
}
127127

128128
#define PycString_IMPORT \
129-
PycStringIO=xxxPyCObject_Import("cStringIO", "cStringIO_CAPI")
129+
PycStringIO=(struct PycStringIO_CAPI*)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI")
130130

131131
#endif /* CSTRINGIO_INCLUDED */

0 commit comments

Comments
 (0)