X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Frbtree.h;h=c9321a68c35a2fd0f88d601fa19624292f80c7fa;hp=583230e0e787bfa8688b6bf1fe2a44bc56612327;hb=161e7cdd2c0d3b3c1025da452a3192d381297465;hpb=eb34f70aa8288124da89838c7a71f2a49fb8def5 diff --git a/src/rbtree.h b/src/rbtree.h index 583230e0..c9321a68 100644 --- a/src/rbtree.h +++ b/src/rbtree.h @@ -30,9 +30,10 @@ #define _LINUX_RBTREE_H #include "util.h" +#include struct rb_node { - unsigned long __rb_parent_color; + uintptr_t __rb_parent_color; struct rb_node *rb_right; struct rb_node *rb_left; }; @@ -51,7 +52,7 @@ extern void rb_erase(struct rb_node *, struct rb_root *); static inline void rb_link_node(struct rb_node * node, struct rb_node * parent, struct rb_node ** rb_link) { - node->__rb_parent_color = (unsigned long)parent; + node->__rb_parent_color = (uintptr_t)parent; node->rb_left = node->rb_right = NULL; *rb_link = node;