Skip to content

Commit 388b0ad

Browse files
author
Your Name
committed
Declare variable const
1 parent fd4f092 commit 388b0ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simplecpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,7 @@ namespace simplecpp {
21062106
// Expand while the expansion result ends with the name of a function-like
21072107
// macro whose arguments are supplied by the tokens that follow it. Each round
21082108
// consumes that macro call from the token stream, so tok always advances.
2109-
while (const Macro *calledMacro = rescanMacro(temp, tok, macros, expandedmacros)) {
2109+
while (const Macro * const calledMacro = rescanMacro(temp, tok, macros, expandedmacros)) {
21102110
TokenList temp2(files);
21112111
temp2.push_back(new Token(temp.cback()->str(), tok->location));
21122112

0 commit comments

Comments
 (0)