Skip to content
Snippets Groups Projects
Commit 186508c7 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Fix '+=' accumulation error when parsing numeric amounts in a format string.

llvm-svn: 99479
parent ac418d44
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ static OptionalAmount ParseAmount(const char *&Beg, const char *E) {
char c = *I;
if (c >= '0' && c <= '9') {
hasDigits = true;
accumulator += (accumulator * 10) + (c - '0');
accumulator = (accumulator * 10) + (c - '0');
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment