summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-16 14:02:40 +0000
committersmatz <smatz@openttd.org>2009-01-16 14:02:40 +0000
commite4127c7e5e56eb5b25b60a9ce87d7ca95ea5d417 (patch)
treee4a2b70c214e98ea8f11f2c1125c8acf8d5d5abe
parenteff693d2e9b45a02177ee600e43576e6d733a2bd (diff)
downloadopenttd-e4127c7e5e56eb5b25b60a9ce87d7ca95ea5d417.tar.xz
(svn r15105) -Fix (r15104): signed/unsigned warning
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index aee7c8eb7..78cd652c6 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -277,7 +277,7 @@ static char *FormatBytes(char *buff, int64 number, const char *last)
/* 0 2^10 2^20 2^30 2^40 2^50 2^60 */
const char *siUnits[] = { "B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB" };
- int id = 1;
+ uint id = 1;
while (number >= 1024 * 1024) {
number /= 1024;
id++;