# HG changeset patch # User Bob Ippolito <bob@redivi.com> # Date 1268749800 0 # Tue Mar 16 14:30:00 2010 +0000 # Node ID 60728aa3dde6f17a83e4872a729182d0bfc9de4a # Parent b608217826ff76697f563b7ffe12c04e8f02a6b2 hopefully fix compilation on windows http://code.google.com/p/simplejson/issues/detail?id=74 git-svn-id: http://simplejson.googlecode.com/svn/trunk@228 a4795897-2c25-0410-b006-0d3caba88fa1 diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -506,8 +506,9 @@ } /* Pick up this chunk if it's not zero length */ if (next != end) { + PyObject *strchunk; APPEND_OLD_CHUNK - PyObject *strchunk = PyString_FromStringAndSize(&buf[end], next - end); + strchunk = PyString_FromStringAndSize(&buf[end], next - end); if (strchunk == NULL) { goto bail; }