]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
rbtree: Fix crash with prior
authorRoy Marples <roy@marples.name>
Mon, 4 Mar 2019 16:31:08 +0000 (16:31 +0000)
committerRoy Marples <roy@marples.name>
Mon, 4 Mar 2019 16:31:08 +0000 (16:31 +0000)
compat/rbtree.h

index bc08af8164472ccc4e0924d28b28384c5d9d963a..3196d3418434430156b231263e8417a70de6bf32 100644 (file)
@@ -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))