util/rb_tree: Fix a compiler warning
Gcc 8 warns "cast to pointer from integer of different size" in 32-bit builds. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
62f37ee53d
commit
ccb8309516
|
@ -55,7 +55,7 @@ struct rb_node {
|
|||
static inline struct rb_node *
|
||||
rb_node_parent(struct rb_node *n)
|
||||
{
|
||||
return (struct rb_node *)(n->parent & ~1ull);
|
||||
return (struct rb_node *)(n->parent & ~(uintptr_t)1);
|
||||
}
|
||||
|
||||
/** A red-black tree
|
||||
|
|
Loading…
Reference in New Issue