diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-02 22:25:45 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-02 22:29:08 +0200 |
commit | ed4b689d9172078199d8942791017b74a6a01651 (patch) | |
tree | cc34334d1c988ffdbf9559071e069633da0d1468 /lexer.c | |
parent | 26f152e73eb02c6afdb98e6f7228d0a30ee973f3 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |