(svn r22336) -Fix (r22304): {DECIMAL} printed too many thousand separators.
This commit is contained in:
@@ -262,7 +262,7 @@ static char *FormatNumber(char *buff, int64 number, const char *last, const char
|
|||||||
}
|
}
|
||||||
if (tot |= quot || i >= max_digits - zerofill) {
|
if (tot |= quot || i >= max_digits - zerofill) {
|
||||||
buff += seprintf(buff, last, "%i", (int)quot);
|
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;
|
divisor /= 10;
|
||||||
|
Reference in New Issue
Block a user