summaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-23 21:58:17 +0000
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-23 21:58:17 +0000
commit4c6603bdcaadbcda1216ce37b31124e62acd9d7e (patch)
tree815b743ff6ba1d415c37949080e3bac4b141d8c7 /gcc/genautomata.c
parent2d6788fec3c05a3d5cb0133a5faedea13a9724c5 (diff)
downloadgcc-4c6603bdcaadbcda1216ce37b31124e62acd9d7e.tar.gz
2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4 of size of unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53813 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index ae69c5299d9..900cfb610c3 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -3413,10 +3413,10 @@ reserv_sets_hash_value (reservs)
if (sizeof (set_el_t) <= sizeof (unsigned))
return hash_value;
result = 0;
- for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned))
+ for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned) - 1)
{
result += (unsigned) hash_value;
- hash_value >>= sizeof (unsigned) * CHAR_BIT;
+ hash_value >>= (sizeof (unsigned) - 1) * CHAR_BIT;
}
return result;
}