summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2010-03-16 14:30:00 +0000
committerBob Ippolito <bob@redivi.com>2010-03-16 14:30:00 +0000
commit4fa79de1310f097b55905f5c643031f2db264cdd (patch)
tree287a249bb9d42a90ae73e735d337d45c5b2bc39e
parent65784ffb81125bb8980f8cca54fcb892c24a46f7 (diff)
downloadsimplejson-4fa79de1310f097b55905f5c643031f2db264cdd.tar.gz
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
-rw-r--r--simplejson/_speedups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c
index f4582a0..b06ba50 100644
--- a/simplejson/_speedups.c
+++ b/simplejson/_speedups.c
@@ -506,8 +506,9 @@ scanstring_str(PyObject *pystr, Py_ssize_t end, char *encoding, int strict, Py_s
}
/* 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;
}