mirror of
https://github.com/frida/tinycc
synced 2024-11-24 00:29:38 +03:00
Make VT_STRUCT_MASK unsigned
avoids a (overly anal, but correct) undefined behaviour warning about shifting 4095 as int by 20.
This commit is contained in:
parent
e6d8f9a8bb
commit
7894f39e65
2
tcc.h
2
tcc.h
@ -889,7 +889,7 @@ struct filespec {
|
||||
/* currently unused: 0x000[1248]0000 */
|
||||
|
||||
#define VT_STRUCT_SHIFT 20 /* shift for bitfield shift values (32 - 2*6) */
|
||||
#define VT_STRUCT_MASK (((1 << (6+6)) - 1) << VT_STRUCT_SHIFT | VT_BITFIELD)
|
||||
#define VT_STRUCT_MASK (((1U << (6+6)) - 1) << VT_STRUCT_SHIFT | VT_BITFIELD)
|
||||
#define BIT_POS(t) (((t) >> VT_STRUCT_SHIFT) & 0x3f)
|
||||
#define BIT_SIZE(t) (((t) >> (VT_STRUCT_SHIFT + 6)) & 0x3f)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user