From: Paul Eggert Date: Sun, 26 Dec 2004 05:26:30 +0000 (+0000) Subject: (new_itemsets): Use memset rather than zeroing by hand. This avoids a X-Git-Tag: BISON-2_0~8 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/55a91a8242d818dd4869e0de4333d7cf4d557beb (new_itemsets): Use memset rather than zeroing by hand. This avoids a warning about comparing int to size_t when GCC warnings are enabled. --- diff --git a/src/LR0.c b/src/LR0.c index 1e397324..aeb597d8 100644 --- a/src/LR0.c +++ b/src/LR0.c @@ -183,8 +183,7 @@ new_itemsets (state *s) if (trace_flag & trace_automaton) fprintf (stderr, "Entering new_itemsets, state = %d\n", s->number); - for (i = 0; i < nsyms; i++) - kernel_size[i] = 0; + memset (kernel_size, 0, nsyms * sizeof *kernel_size); nshifts = 0;