From eb314ae9031d30be9ae809b7cff567ba4d7e6f1e Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 18 Nov 2018 14:26:52 -0500 Subject: [PATCH] Remove more casts. --- src/core/wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/wrap.c b/src/core/wrap.c index 0d65bdcd..6d9fe598 100644 --- a/src/core/wrap.c +++ b/src/core/wrap.c @@ -42,7 +42,7 @@ void *janet_nanbox_to_pointer(Janet x) { Janet janet_nanbox_from_pointer(void *p, uint64_t tagmask) { Janet ret; - ret.u64 = (int64_t)p; + ret.pointer = p; #if defined (JANET_NANBOX_47) || defined (JANET_32) #else ret.u64 &= JANET_NANBOX_POINTERBITS; @@ -53,7 +53,7 @@ Janet janet_nanbox_from_pointer(void *p, uint64_t tagmask) { Janet janet_nanbox_from_cpointer(const void *p, uint64_t tagmask) { Janet ret; - ret.u64 = (int64_t)p; + ret.pointer = (void *)p; #if defined (JANET_NANBOX_47) || defined (JANET_32) #else ret.u64 &= JANET_NANBOX_POINTERBITS;