X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b7c49edf135cea5dc2bd0942b42d28e6c84cf71f..75142d452b7f6bc3b6be3d8a08c0f602fd157ec5:/src/print_graph.c diff --git a/src/print_graph.c b/src/print_graph.c index 2c7d94c2..55e4b379 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -66,7 +66,7 @@ print_core (state_t *state, struct obstack *node_obstack) sp1 = sp = ritem + sitems[i]; - while (*sp > 0) + while (*sp >= 0) sp++; rule = -(*sp); @@ -81,7 +81,7 @@ print_core (state_t *state, struct obstack *node_obstack) obstack_1grow (node_obstack, '.'); - for (/* Nothing */; *sp > 0; ++sp) + for (/* Nothing */; *sp >= 0; ++sp) obstack_fgrow1 (node_obstack, " %s", escape (tags[*sp])); } }