summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index edcfbb53a..148790425 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -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;