Mercurial > cpython-lru_cache-weakref
diff Modules/_json.c @ 46766:5e4bd8249846
Move variable declaration to the top of the block,
to let _json.c compile with Microsoft compilers.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Thu, 08 May 2008 20:56:43 +0000 |
| parents | 9f45979558a9 |
| children | 23ab586c427a |
line wrap: on
line diff
--- a/Modules/_json.c Thu May 08 20:37:28 2008 +0000 +++ b/Modules/_json.c Thu May 08 20:56:43 2008 +0000 @@ -256,10 +256,11 @@ } /* Pick up this chunk if it's not zero length */ if (next != end) { + PyObject *strchunk; if (PyBuffer_FillInfo(&info, &buf[end], next - end, 1, 0) < 0) { goto bail; } - PyObject *strchunk = PyMemoryView_FromMemory(&info); + strchunk = PyMemoryView_FromMemory(&info); if (strchunk == NULL) { goto bail; }
