diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-08-20 01:19:34 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-08-20 01:19:34 (GMT) |
commit | 18bb330203bbff6a80343988efc12367b3be6686 (patch) | |
tree | 945d63a32601133855eefd6eb67246cd8c13ebad /Modules/_json.c | |
parent | 5f4ea28f4979523c94446121e8057b68d4119ee4 (diff) | |
download | cpython-18bb330203bbff6a80343988efc12367b3be6686.zip cpython-18bb330203bbff6a80343988efc12367b3be6686.tar.gz cpython-18bb330203bbff6a80343988efc12367b3be6686.tar.bz2 |
Fix compilation under Windows
Diffstat (limited to 'Modules/_json.c')
-rw-r--r-- | Modules/_json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index 7c5e5e4..d5120fa 100644 --- a/Modules/_json.c +++ b/Modules/_json.c @@ -138,6 +138,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj) { int ret; Py_ssize_t nsmall; + PyObject *joined; assert(PyUnicode_Check(obj)); if (PyList_Append(acc->small, obj)) @@ -152,7 +153,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj) */ 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)) { |