From 2efdf3f61a08d7312f65ece8d26c34ee5540d9a2 Mon Sep 17 00:00:00 2001 From: Bo Date: Mon, 28 Oct 2024 22:08:21 +0200 Subject: [PATCH] oops --- ext/iodine/iodine_json.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/iodine/iodine_json.h b/ext/iodine/iodine_json.h index 632fd70..76f9aa9 100644 --- a/ext/iodine/iodine_json.h +++ b/ext/iodine/iodine_json.h @@ -85,8 +85,8 @@ FIO_SFUNC void *iodine___json_on_true(void) { return (void *)Qtrue; } /** FALSE object was detected. Returns new object as `void *`. */ FIO_SFUNC void *iodine___json_on_false(void) { return (void *)Qfalse; } /** Number was detected (long long). Returns new object as `void *`. */ -FIO_SFUNC void *iodine___json_on_number(uint64_t i) { - return (void *)LL2NUM(((long long)i)); +FIO_SFUNC void *iodine___json_on_number(int64_t i) { + return (void *)(LL2NUM(((long long)i))); } /** Float was detected (double).Returns new object as `void *`. */ FIO_SFUNC void *iodine___json_on_float(double f) { return (void *)DBL2NUM(f); }