mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
(new_itemsets): Use memset rather than zeroing by hand. This avoids a
warning about comparing int to size_t when GCC warnings are enabled.
This commit is contained in:
@@ -183,8 +183,7 @@ new_itemsets (state *s)
|
|||||||
if (trace_flag & trace_automaton)
|
if (trace_flag & trace_automaton)
|
||||||
fprintf (stderr, "Entering new_itemsets, state = %d\n", s->number);
|
fprintf (stderr, "Entering new_itemsets, state = %d\n", s->number);
|
||||||
|
|
||||||
for (i = 0; i < nsyms; i++)
|
memset (kernel_size, 0, nsyms * sizeof *kernel_size);
|
||||||
kernel_size[i] = 0;
|
|
||||||
|
|
||||||
nshifts = 0;
|
nshifts = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user