diff options
author | smatz <smatz@openttd.org> | 2012-02-12 21:17:32 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2012-02-12 21:17:32 +0000 |
commit | b5525fd33dc965728ffc0e22efc0b1ba806ef807 (patch) | |
tree | c0d8203cd6c55766b17bbaeee2c83fc3ab2754a2 /src/strings.cpp | |
parent | f4de9b8a371fa1817aa4c0a47d224eb3b9779b0e (diff) | |
download | openttd-b5525fd33dc965728ffc0e22efc0b1ba806ef807.tar.xz |
(svn r23941) -Add: support for clang
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 9358e6cba..40e31cea8 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -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); } |