projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f37ee
)
util/rb_tree: Fix a compiler warning
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 12 Jul 2018 00:06:26 +0000
(17:06 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 12 Jul 2018 17:25:46 +0000
(10:25 -0700)
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>
src/util/rb_tree.h
patch
|
blob
|
history
diff --git
a/src/util/rb_tree.h
b/src/util/rb_tree.h
index e8750b32d0e91676c57d9410ba3bc0e5ad5b0a04..c77e9255ea2d6dfc6309a34546574f0ec1881397 100644
(file)
--- a/
src/util/rb_tree.h
+++ b/
src/util/rb_tree.h
@@
-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