From: Antoine Pitrou Date: Wed, 8 May 2013 00:07:13 +0000 (+0200) Subject: Issue #17928: Fix test_structmembers on 64-bit big-endian machines. X-Git-Tag: v2.7.5~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e18102a72b8982096c3f2b453f7b5da401586f6;p=thirdparty%2FPython%2Fcpython.git Issue #17928: Fix test_structmembers on 64-bit big-endian machines. (_testcapi isn't Py_ssize_t-clean, the "s#" code should use an int for length) --- diff --git a/Misc/NEWS b/Misc/NEWS index 466781c1225c..579e09c5f706 100644 --- 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. diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index f1968e2a70cb..b0386f0cace9 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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;