Mercurial > cpython-lru_cache-weakref
diff Modules/_json.c @ 71977:b09d07d1f696
Fix compilation under Windows
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sat, 20 Aug 2011 03:19:34 +0200 |
| parents | 47176e8d7060 |
| children | 8beaa9a37387 |
line wrap: on
line diff
--- a/Modules/_json.c Fri Aug 19 22:55:24 2011 +0200 +++ b/Modules/_json.c Sat Aug 20 03:19:34 2011 +0200 @@ -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)) {
