Browse Source

Had forgotten to initialise the line number on which a nonterminal
symbol occurred first.

ceriel 40 years ago
parent
commit
d89d5770b1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      util/LLgen/src/name.c

+ 1 - 0
util/LLgen/src/name.c

@@ -169,6 +169,7 @@ search(type,str,option) register string str; {
 
 		q = &nonterms[nnonterms];
 		q->n_rule = 0;
+		q->n_lineno = linecount;
 		q->n_string = f_input;
 		q->n_follow = 0;
 		q->n_flags = 0;