diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2019-07-30 17:49:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 17:49:03 -0700 |
commit | 76d75aec66e1e6f173f3b6668601108ed453f3d3 (patch) | |
tree | b4bc5af6bb92804bae676dd32c3b21cdd78972aa /generated_for_cmake/upb/json/parser.c | |
parent | 423ea5ca9ce8da69611e6e95559efcb3a1ba8ad8 (diff) | |
parent | 7a1e6aa84ba857d2e3cdc6e5fd50e3bda210c164 (diff) |
Merge pull request #195 from veblush/vsnprintf
Fix compiler error on Windows
Diffstat (limited to 'generated_for_cmake/upb/json/parser.c')
-rw-r--r-- | generated_for_cmake/upb/json/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_for_cmake/upb/json/parser.c b/generated_for_cmake/upb/json/parser.c index a1bd0d2..8af0916 100644 --- a/generated_for_cmake/upb/json/parser.c +++ b/generated_for_cmake/upb/json/parser.c @@ -949,7 +949,7 @@ static bool parse_number_from_buffer(upb_json_parser *p, const char *buf, upb_fieldtype_t type = upb_fielddef_type(p->top->f); double val; double dummy; - double inf = 1.0 / 0.0; /* C89 does not have an INFINITY macro. */ + double inf = UPB_INFINITY; errno = 0; |