summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lexer.c b/lexer.c
index 26ee3e1..f7b822d 100644
--- a/lexer.c
+++ b/lexer.c
@@ -539,13 +539,13 @@ parse_number(const char *buf, struct ut_opcode *op, struct ut_state *s)
if (!strncmp(buf, "Infinity", 8)) {
op->type = T_DOUBLE;
- op->val = json_object_new_double_rounded(INFINITY);
+ op->val = ut_new_double(INFINITY);
return 8;
}
else if (!strncmp(buf, "NaN", 3)) {
op->type = T_DOUBLE;
- op->val = json_object_new_double_rounded(NAN);
+ op->val = ut_new_double(NAN);
return 3;
}
@@ -558,7 +558,7 @@ parse_number(const char *buf, struct ut_opcode *op, struct ut_state *s)
if (e > buf) {
op->type = T_DOUBLE;
- op->val = json_object_new_double_rounded(d);
+ op->val = ut_new_double(d);
return (e - buf);
}