(svn r22336) -Fix (r22304): {DECIMAL} printed too many thousand separators.

This commit is contained in:
frosch 2011-04-17 17:17:09 +00:00
parent b1286bbcda
commit f4649c7ce7
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ static char *FormatNumber(char *buff, int64 number, const char *last, const char
}
if (tot |= quot || i >= max_digits - zerofill) {
buff += seprintf(buff, last, "%i", (int)quot);
if ((i % 3) == thousands_offset && i != max_digits - 1) buff = strecpy(buff, separator, last);
if ((i % 3) == thousands_offset && i < max_digits - 1 - fractional_digits) buff = strecpy(buff, separator, last);
}
divisor /= 10;