[Python-checkins] cpython: Fix compilation under Windows

antoine.pitrou python-checkins at python.org
Sat Aug 20 03:21:49 CEST 2011


http://hg.python.org/cpython/rev/b09d07d1f696
changeset: 71977:b09d07d1f696
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Aug 20 03:19:34 2011 +0200
summary:
 Fix compilation under Windows
files:
 Modules/_json.c | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Modules/_json.c b/Modules/_json.c
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -138,6 +138,7 @@
 {
 int ret;
 Py_ssize_t nsmall;
+ PyObject *joined;
 assert(PyUnicode_Check(obj));
 
 if (PyList_Append(acc->small, obj))
@@ -152,7 +153,7 @@
 */
 if (nsmall < 100000)
 return 0;
- PyObject *joined = join_list_unicode(acc->small);
+ joined = join_list_unicode(acc->small);
 if (joined == NULL)
 return -1;
 if (PyList_SetSlice(acc->small, 0, nsmall, NULL)) {
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /