Commit 18bb3302 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix compilation under Windows

parent 5f4ea28f
...@@ -138,6 +138,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj) ...@@ -138,6 +138,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj)
{ {
int ret; int ret;
Py_ssize_t nsmall; Py_ssize_t nsmall;
PyObject *joined;
assert(PyUnicode_Check(obj)); assert(PyUnicode_Check(obj));
if (PyList_Append(acc->small, obj)) if (PyList_Append(acc->small, obj))
...@@ -152,7 +153,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj) ...@@ -152,7 +153,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj)
*/ */
if (nsmall < 100000) if (nsmall < 100000)
return 0; return 0;
PyObject *joined = join_list_unicode(acc->small); joined = join_list_unicode(acc->small);
if (joined == NULL) if (joined == NULL)
return -1; return -1;
if (PyList_SetSlice(acc->small, 0, nsmall, NULL)) { if (PyList_SetSlice(acc->small, 0, nsmall, NULL)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment