diff options
author | Arne Juul <arnej@vespa.ai> | 2023-12-14 08:26:50 +0000 |
---|---|---|
committer | Arne Juul <arnej@vespa.ai> | 2023-12-14 08:26:50 +0000 |
commit | 990aab34103e545f17f3e05b02a6b2f7bcdca05c (patch) | |
tree | ebde890e7fd9f58a129cafc36a2fa75846fd55e7 /vespalib | |
parent | 1ad5ec5fa814a92fdbf98db14121197023f434f0 (diff) |
Reapply "add parsing of special strings for inf/nan cell values"
This reverts commit d976f82207c09b3215661e1d034ae9a42f28a63d.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/data/slime/json_format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/data/slime/json_format.cpp b/vespalib/src/vespa/vespalib/data/slime/json_format.cpp index 9e4ba14e231..a5c7d31a046 100644 --- a/vespalib/src/vespa/vespalib/data/slime/json_format.cpp +++ b/vespalib/src/vespa/vespalib/data/slime/json_format.cpp @@ -492,7 +492,7 @@ insertNumber(Inserter &inserter, bool isLong, const vespalib::string & value, ch inserter.insertLong(val); } else { double val = locale::c::strtod_au(value.c_str(), endp); - errorCode = errno; + errorCode = (errno == ERANGE ? 0 : errno); inserter.insertDouble(val); } assert(errorCode == 0 || errorCode == ERANGE || errorCode == EINVAL); |