From 1e18102a72b8982096c3f2b453f7b5da401586f6 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 8 May 2013 02:07:13 +0200 Subject: 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) --- Misc/NEWS | 2 ++ Modules/_testcapimodule.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 466781c..579e09c 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 f1968e2..b0386f0 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; -- cgit v0.12