[hackers] [scc] lex: fix line count, char *line -> unsigned short nline || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 18 Jul 2015 11:14:07 +0200 (CEST)

commit e92b066bb72448c50ece30f7e02022b6524c8501
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Jul 18 11:04:31 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Jul 18 11:04:31 2015 +0200

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

diff --git a/cc1/lex.c b/cc1/lex.c
index 9d68717..14f1a74 100644
--- a/cc1/lex.c
+++ b/cc1/lex.c
_AT_@ -168,7 +168,7 @@ repeat:
 
         if (bp == lim) {
                 error("line %u too big in file '%s'",
- input->line, input->fname);
+ input->nline, input->fname);
         }
         *bp = '\0';
         return 1;
Received on Sat Jul 18 2015 - 11:14:07 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 18 2015 - 11:24:10 CEST