diff Modules/_json.c @ 53769:2e044c9f4b40

Merged revisions 72314 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r72314 | georg.brandl | 2009-05-05 09:48:12 +0200 (Di, 05 Mai 2009) | 1 line #5932: fix error return in _convertPyInt_AsSsize_t() conversion function. ........
author Georg Brandl <georg@python.org>
date Tue, 05 May 2009 07:52:05 +0000
parents 206ccf9aa025
children 1c078bbca233
line wrap: on
line diff
--- a/Modules/_json.c	Tue May 05 04:43:17 2009 +0000
+++ b/Modules/_json.c	Tue May 05 07:52:05 2009 +0000
@@ -133,9 +133,9 @@
 {
     /* PyObject to Py_ssize_t converter */
     *size_ptr = PyLong_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 *