mirror of
https://github.com/janet-lang/janet
synced 2026-09-17 14:51:22 +00:00
Replace cast with type pun.
This commit is contained in:
+2
-1
@@ -36,7 +36,8 @@ void *janet_nanbox_to_pointer(Janet x) {
|
||||
#else
|
||||
x.i64 = (x.i64 << 16) >> 16;
|
||||
#endif
|
||||
return (void *)x.i64;
|
||||
|
||||
return x.pointer;
|
||||
}
|
||||
|
||||
Janet janet_nanbox_from_pointer(void *p, uint64_t tagmask) {
|
||||
|
||||
Reference in New Issue
Block a user