(svn r23941) -Add: support for clang

This commit is contained in:
smatz
2012-02-12 21:17:32 +00:00
parent f4de9b8a37
commit b5525fd33d
7 changed files with 78 additions and 12 deletions

View File

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