summaryrefslogtreecommitdiffstats
path: root/Modules/_json.c
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2009-03-29 22:33:58 (GMT)
committerBob Ippolito <bob@redivi.com>2009-03-29 22:33:58 (GMT)
commit76a982a027d72287a6d9113b1d65ec6d327d744d (patch)
tree0c2536d595c4b31e9bc996609123129e02b4543c /Modules/_json.c
parent8e1a3381293466a6d9a3873b46194a4ed9277619 (diff)
downloadcpython-76a982a027d72287a6d9113b1d65ec6d327d744d.zip
cpython-76a982a027d72287a6d9113b1d65ec6d327d744d.tar.gz
cpython-76a982a027d72287a6d9113b1d65ec6d327d744d.tar.bz2
Issue 5381: fix regression in pure python code path, Issue 5584: fix a decoder bug for unicode float literals outside of a container
Diffstat (limited to 'Modules/_json.c')
-rw-r--r--Modules/_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_json.c b/Modules/_json.c
index 0354a9b..0e30469 100644
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -1468,7 +1468,7 @@ _match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_
if (idx < end_idx && str[idx] == '.' && str[idx + 1] >= '0' && str[idx + 1] <= '9') {
is_float = 1;
idx += 2;
- while (idx < end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
+ while (idx <= end_idx && str[idx] >= '0' && str[idx] <= '9') idx++;
}
/* if the next char is 'e' or 'E' then maybe read the exponent (or backtrack) */