mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Prevent warning on 32-bit platforms
This commit is contained in:
parent
e465f811f5
commit
5491180e8c
1 changed files with 2 additions and 2 deletions
|
@ -494,12 +494,12 @@ typedef uint32_t char_type;
|
|||
/**
|
||||
* Convert from an object to a char.
|
||||
*/
|
||||
#define obj_obj2char(x) (char_type)((uintmax_t)(x)>>2)
|
||||
#define obj_obj2char(x) (char_type)((uintptr_t)(x)>>2)
|
||||
|
||||
/**
|
||||
* Convert from a char to an object.
|
||||
*/
|
||||
#define obj_char2obj(c) ((void *)((((uintmax_t)c)<<2) | 2))
|
||||
#define obj_char2obj(c) ((void *)((((uintptr_t)c)<<2) | 2))
|
||||
|
||||
/**
|
||||
* Is the given object a value type?
|
||||
|
|
Loading…
Add table
Reference in a new issue