summaryrefslogtreecommitdiff
path: root/generated_for_cmake
diff options
context:
space:
mode:
authorEsun Kim <veblush@google.com>2019-07-30 15:43:50 -0700
committerEsun Kim <veblush@google.com>2019-07-30 15:43:50 -0700
commit7a1e6aa84ba857d2e3cdc6e5fd50e3bda210c164 (patch)
treeb4bc5af6bb92804bae676dd32c3b21cdd78972aa /generated_for_cmake
parentf179e23e5b9f502cce9a2b9fa6a918d1a689758b (diff)
Support MSVC prior to 2015
Diffstat (limited to 'generated_for_cmake')
-rw-r--r--generated_for_cmake/upb/json/parser.c2
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback