File python-test_structmembers.patch of Package python-base.import4508

Index: Modules/_testcapimodule.c
===================================================================
--- Modules/_testcapimodule.c	(revision 85001)
+++ Modules/_testcapimodule.c	(working copy)
@@ -5,6 +5,7 @@
  * standard Python regression test, via Lib/test/test_capi.py.
  */
 
+#define PY_SSIZE_T_CLEAN
 #include "Python.h"
 #include <float.h>
 #include "structmember.h"
@@ -593,7 +594,7 @@
 {
     PyObject *tuple, *obj;
     Py_UNICODE *value;
-    int len;
+    Py_ssize_t len;
 
     /* issue4122: Undefined reference to _Py_ascii_whitespace on Windows */
     /* Just use the macro and check that it compiles */
openSUSE Build Service is sponsored by