Fixing crash, not sure about side effects. Ticket #37
This commit is contained in:
parent
50d9a085da
commit
3cb51d6946
|
@ -751,7 +751,7 @@ std::string Preprocessor::expandMacros(std::string code)
|
|||
|
||||
code.erase(pos1, pos2 - pos1);
|
||||
code.insert(pos1, macrocode);
|
||||
pos1 += macrocode.length();
|
||||
pos1 += macrocode.length() - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue