summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/json/json_reader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/json/json_reader.cc b/base/json/json_reader.cc
index 748cc4e..f6bdc35 100644
--- a/base/json/json_reader.cc
+++ b/base/json/json_reader.cc
@@ -28,9 +28,9 @@ bool ReadInt(base::JSONReader::Token& token, bool can_have_leading_zeros) {
wchar_t first = token.NextChar();
int len = 0;
- // Read in more digits
+ // Read in more digits.
wchar_t c = first;
- while ('\0' != c && '0' <= c && c <= '9') {
+ while ('\0' != c && IsAsciiDigit(c)) {
++token.length;
++len;
c = token.NextChar();