diff options
| author | Roy Marples <roy@marples.name> | 2019-03-04 16:31:08 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-03-04 16:31:08 +0000 |
| commit | f1ea704ea8b1fec41299b04b40fb6ee17151299c (patch) | |
| tree | 09d8739236b3fff4e3773d67422ca05ce195b627 /compat | |
| parent | 93e47d56ab47dd13a598717d0fbc63fe9f33908c (diff) | |
| download | dhcpcd-f1ea704ea8b1fec41299b04b40fb6ee17151299c.tar.xz | |
rbtree: Fix crash with prior
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/rbtree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/rbtree.h b/compat/rbtree.h index bc08af81..3196d341 100644 --- a/compat/rbtree.h +++ b/compat/rbtree.h @@ -61,8 +61,8 @@ typedef struct rb_node { * rb_node will have an alignment of 4 or 8 bytes. */ uintptr_t rb_info; -#define RB_FLAG_POSITION 0x2U -#define RB_FLAG_RED 0x1U +#define RB_FLAG_POSITION (uintptr_t)0x2 +#define RB_FLAG_RED (uintptr_t)0x1 #define RB_FLAG_MASK (RB_FLAG_POSITION|RB_FLAG_RED) #define RB_FATHER(rb) \ ((struct rb_node *)((rb)->rb_info & ~RB_FLAG_MASK)) |
