From: Ben Pfaff Date: Mon, 1 Aug 2022 04:16:49 +0000 (-0700) Subject: lexer: Fix negative 'n0' and 'n1' in lex_source_contains_macro_call(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=39df27f80745cf9622ac5e916a098c17961c2585 lexer: Fix negative 'n0' and 'n1' in lex_source_contains_macro_call(). --- diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index 47c019ec26..7d40ce1cd5 100644 --- a/src/language/lexer/lexer.c +++ b/src/language/lexer/lexer.c @@ -1868,7 +1868,7 @@ lex_source_syntax__ (const struct lex_source *src, int ofs0, int ofs1) static bool lex_source_contains_macro_call (struct lex_source *src, int n0, int n1) { - for (size_t i = n0; i <= n1; i++) + for (int i = n0; i <= n1; i++) if (lex_source_next__ (src, i)->macro_rep) return true; return false;