Commit 96b1f73b by Vladimir Makarov Committed by Vladimir Makarov

genautomata.c (reserv_sets_hash_value): Fix a typo.

2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (reserv_sets_hash_value): Fix a typo.

From-SVN: r53710
parent dceb2b75
2002-05-21 Vladimir Makarov <vmakarov@redhat.com> 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (reserv_sets_hash_value): Fix a typo.
2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (reserv_sets_hash_value): Define hash_value as * genautomata.c (reserv_sets_hash_value): Define hash_value as
set_el_t. Transform the hash value into unsigned. set_el_t. Transform the hash value into unsigned.
(output_cycle_reservs): Fix bug with output of repeated `nothing'. (output_cycle_reservs): Fix bug with output of repeated `nothing'.
......
...@@ -3410,7 +3410,7 @@ reserv_sets_hash_value (reservs) ...@@ -3410,7 +3410,7 @@ reserv_sets_hash_value (reservs)
i = 0; i = 0;
reserv_ptr++; reserv_ptr++;
} }
if (sizeof (set_el_t) < sizeof (unsigned)) if (sizeof (set_el_t) <= sizeof (unsigned))
return hash_value; return hash_value;
result = 0; result = 0;
for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned)) for (i = sizeof (set_el_t); i > 0; i -= sizeof (unsigned))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment