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:
Jason Ekstrand 2018-07-11 17:06:26 -07:00
parent 62f37ee53d
commit ccb8309516
1 changed files with 1 additions and 1 deletions

View File

@ -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