projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b49f65
)
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, 28 Aug 2022 21:22:19 +0000
(14:22 -0700)
src/language/lexer/lexer.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/lexer.c
b/src/language/lexer/lexer.c
index eb5d7cbd37ae32a03bf11f923467583a20174d01..d7d7eae588e156a6ba7a19f373c236dbc155b424 100644
(file)
--- a/
src/language/lexer/lexer.c
+++ b/
src/language/lexer/lexer.c
@@
-1874,7
+1874,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;