summaryrefslogtreecommitdiff
path: root/src
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
commit4a53ba188609d648b5ca07f1f39eaace85ccf765 (patch)
treee4a2b70c214e98ea8f11f2c1125c8acf8d5d5abe /src
parentb1a33a494f7a9510f600cb18e771b35905597be6 (diff)
downloadopenttd-4a53ba188609d648b5ca07f1f39eaace85ccf765.tar.xz
(svn r15105) -Fix (r15104): signed/unsigned warning
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 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++;