From 84a36b80e80085ce00b107a8f12f5ed0e0297b84 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 25 Feb 2025 06:11:36 -0500 Subject: listamsb: fix line number out of order/rage detection. --- listamsb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/listamsb.c b/listamsb.c index 11a449c..11c7efa 100644 --- a/listamsb.c +++ b/listamsb.c @@ -96,7 +96,8 @@ void unknown_token(int lineno, unsigned char byte, int ext) { } int next_line(void) { - int ptr, lineno, was_ff, in_string, last_lineno = -1; + static int last_lineno = -1; + int ptr, lineno, was_ff, in_string; unsigned char byte; /* pointer to last token on the line, offset by whatever MEMLO -- cgit v1.2.3