projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3983090
)
lexer: Fix negative 'n0' and 'n1' in lex_source_contains_macro_call().
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 1 Aug 2022 04:16:49 +0000
(21:16 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 7 Aug 2022 16:53:13 +0000
(09:53 -0700)
src/language/lexer/lexer.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/lexer.c
b/src/language/lexer/lexer.c
index 47c019ec26dfe4208984bc23264aba69f9623aa6..7d40ce1cd50a39ad70baabc9547855d74d5caada 100644
(file)
--- 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 (
in
t i = n0; i <= n1; i++)
if (lex_source_next__ (src, i)->macro_rep)
return true;
return false;