summaryrefslogtreecommitdiff
path: root/upb/json/parser.rl
diff options
context:
space:
mode:
Diffstat (limited to 'upb/json/parser.rl')
-rw-r--r--upb/json/parser.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/parser.rl b/upb/json/parser.rl
index fd3704c..f80ed18 100644
--- a/upb/json/parser.rl
+++ b/upb/json/parser.rl
@@ -947,7 +947,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