projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ca1d1
)
(print_node): Avoid 1 << (HOST_BITS_PER_INT - 1),
author
Richard Stallman
<rms@gnu.org>
Wed, 2 Sep 1992 06:59:00 +0000
(06:59 +0000)
committer
Richard Stallman
<rms@gnu.org>
Wed, 2 Sep 1992 06:59:00 +0000
(06:59 +0000)
which overflows. Use unsigned % to compute HASH.
From-SVN: r2027
gcc/print-tree.c
patch
|
blob
|
history
diff --git
a/gcc/print-tree.c
b/gcc/print-tree.c
index 8b47cdb9d7bab0a7af75ec1829d50b8e48a0636f..6524b495c2b30d611cb27a9530963c90418d44de 100644
(file)
--- a/
gcc/print-tree.c
+++ b/
gcc/print-tree.c
@@
-205,7
+205,7
@@
print_node (file, prefix, node, indent)
return;
}
- hash = ((
HOST_WIDE_INT) node & ~(1 << (HOST_BITS_PER_INT - 1))
) % HASH_SIZE;
+ hash = ((
unsigned HOST_WIDE_INT) node
) % HASH_SIZE;
/* If node is in the table, just mention its address. */
for (b = table[hash]; b; b = b->next)