linenumber in long instead of short

This commit is contained in:
ceriel 1988-06-13 15:28:19 +00:00
parent cc9c3ae870
commit 192de9bf32
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ extern short pass INIT(PASS_1);
/* PASS 1, 2 or 3 */
extern short peekc; /* push back symbol (PASS_1) */
extern short unresolved; /* number of unresolved references */
extern short lineno; /* input line number */
extern long lineno; /* input line number */
extern short hllino; /* high-level language line number */
extern short nerrors; /* terminate at end of pass if set */
extern short sflag INIT(SYM_DEF);

View file

@ -388,7 +388,7 @@ char *tail, *s;
{
fflush(stdout);
if (modulename)
fprintf(stderr, "\"%s\", line %d: ", modulename, lineno);
fprintf(stderr, "\"%s\", line %ld: ", modulename, lineno);
else
fprintf(stderr, "%s: ", progname);
fprintf(stderr, s, a1, a2, a3, a4);