mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 07:33:01 +00:00 
			
		
		
		
	Replace cast with type pun.
This commit is contained in:
		| @@ -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
	 Calvin Rose
					Calvin Rose