diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-08 00:07:13 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-05-08 00:07:13 (GMT) |
commit | 1e18102a72b8982096c3f2b453f7b5da401586f6 (patch) | |
tree | 59823ddeaa8d55376c50920dc38781e6dbe8859f /Modules/_testcapimodule.c | |
parent | 38f1afe8d112087491f04fae44f5f0a3f6b5c839 (diff) | |
download | cpython-1e18102a72b8982096c3f2b453f7b5da401586f6.zip cpython-1e18102a72b8982096c3f2b453f7b5da401586f6.tar.gz cpython-1e18102a72b8982096c3f2b453f7b5da401586f6.tar.bz2 |
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)
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |