commit | f71ba95e9146872200bbc474337b41b0b4d964de | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue May 05 07:48:12 2009 +0000 |
committer | Georg Brandl <georg@python.org> | Tue May 05 07:48:12 2009 +0000 |
tree | 4fbb76649cd59b8164e31a6fb0be5533c0e9bcc3 | |
parent | ab538fc2b20acc1c82eb28ccfc6450ebfb8d7b1c [diff] [blame] |
#5932: fix error return in _convertPyInt_AsSsize_t() conversion function.
diff --git a/Modules/_json.c b/Modules/_json.c index 0e30469..cfe8708 100644 --- a/Modules/_json.c +++ b/Modules/_json.c
@@ -143,9 +143,9 @@ { /* PyObject to Py_ssize_t converter */ *size_ptr = PyInt_AsSsize_t(o); - if (*size_ptr == -1 && PyErr_Occurred()); - return 1; - return 0; + if (*size_ptr == -1 && PyErr_Occurred()) + return 0; + return 1; } static PyObject *