summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-02 22:25:45 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-02 22:29:08 +0200
commited4b689d9172078199d8942791017b74a6a01651 (patch)
treecc34334d1c988ffdbf9559071e069633da0d1468 /lexer.c
parent26f152e73eb02c6afdb98e6f7228d0a30ee973f3 (diff)
treewide: rename double and null value constructor functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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);
}