summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-30 12:11:51 +0000
committerrubidium <rubidium@openttd.org>2009-04-30 12:11:51 +0000
commit90fe46123a5c771801b8a07a1ac256ba68012050 (patch)
treeac372a83e1dfb86759c5e3e1b994790f48ff6e11 /src
parent2a68294990d9d97b43777d02cb84ef3a909a655b (diff)
downloadopenttd-90fe46123a5c771801b8a07a1ac256ba68012050.tar.xz
(svn r16188) -Fix [FS#2874] (r16124): printing the first 4 bytes worth of a 8 byte integer causes some unwanted side effects when the system is not little-endian.
Diffstat (limited to 'src')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 64db048c4..85b3b3789 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -203,7 +203,7 @@ static char *FormatNumber(char *buff, int64 number, const char *last, const char
num = num % divisor;
}
if (tot |= quot || i == 19) {
- buff += seprintf(buff, last, "%i", quot);
+ buff += seprintf(buff, last, "%i", (int)quot);
if ((i % 3) == 1 && i != 19) buff = strecpy(buff, separator, last);
}