Fixing crash, not sure about side effects. Ticket #37

This commit is contained in:
Reijo Tomperi 2009-01-18 23:03:28 +00:00
parent 50d9a085da
commit 3cb51d6946
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}