]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #17928: Fix test_structmembers on 64-bit big-endian machines.
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 8 May 2013 00:07:13 +0000 (02:07 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 8 May 2013 00:07:13 +0000 (02:07 +0200)
(_testcapi isn't Py_ssize_t-clean, the "s#" code should use an int for length)

Misc/NEWS
Modules/_testcapimodule.c

index 466781c1225c867db7b0c89f5d242cf0be39e196..579e09c5f706bcd3b1fa272bc2e6ad6f62524373 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -97,6 +97,8 @@ Library
 Tests
 -----
 
+- Issue #17928: Fix test_structmembers on 64-bit big-endian machines.
+
 - Issue #17883: Fix buildbot testing of Tkinter on Windows.
   Patch by Zachary Ware.
 
index f1968e2a70cb959b12d4c2ed6f17b9722265bf54..b0386f0cace985c24959c42261b1d02186428602 100644 (file)
@@ -1813,7 +1813,7 @@ test_structmembers_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
         ;
     test_structmembers *ob;
     const char *s = NULL;
-    Py_ssize_t string_len = 0;
+    int string_len = 0;
     ob = PyObject_New(test_structmembers, type);
     if (ob == NULL)
         return NULL;