shithub: scc

Download patch

ref: e92b066bb72448c50ece30f7e02022b6524c8501
parent: 9051e2b39dc3488b33c454ec375465471f3c3eb6
author: Hiltjo Posthuma <[email protected]>
date: Sat Jul 18 07:04:31 EDT 2015

lex: fix line count, char *line -> unsigned short nline

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -168,7 +168,7 @@
 
 	if (bp == lim) {
 		error("line %u too big in file '%s'",
-		      input->line, input->fname);
+		      input->nline, input->fname);
 	}
 	*bp = '\0';
 	return 1;