summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-03-04 16:31:08 +0000
committerRoy Marples <roy@marples.name>2019-03-04 16:31:08 +0000
commitf1ea704ea8b1fec41299b04b40fb6ee17151299c (patch)
tree09d8739236b3fff4e3773d67422ca05ce195b627 /compat
parent93e47d56ab47dd13a598717d0fbc63fe9f33908c (diff)
downloaddhcpcd-f1ea704ea8b1fec41299b04b40fb6ee17151299c.tar.xz
rbtree: Fix crash with prior
Diffstat (limited to 'compat')
-rw-r--r--compat/rbtree.h4
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))