fix(style): use static_cast
This commit is contained in:
parent
caab1c58d2
commit
aeaa19ac44
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ public:
|
|||
};
|
||||
|
||||
#define LEAN_VM_IS_PTR(obj) ((reinterpret_cast<size_t>(obj) & 1) == 0)
|
||||
#define LEAN_VM_BOX(num) (reinterpret_cast<vm_obj_cell*>((uintptr_t)((num << 1) | 1)))
|
||||
#define LEAN_VM_BOX(num) (reinterpret_cast<vm_obj_cell*>(static_cast<uintptr_t>((num << 1) | 1)))
|
||||
#define LEAN_VM_UNBOX(obj) (reinterpret_cast<size_t>(obj) >> 1)
|
||||
|
||||
[[noreturn]] void vm_check_failed(char const * condition);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue