summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-06-30 00:17:07 +0000
committerKUDr <KUDr@openttd.org>2007-06-30 00:17:07 +0000
commitf766c48bc492b71e6cbe569fdf04c953bdbb8922 (patch)
treec7ee115033e7d0c32ea3c4ce97505fd579082cc3 /src/misc
parent1e54937ee1761c7ab0a7cec8fa43abf77b8d2a96 (diff)
downloadopenttd-f766c48bc492b71e6cbe569fdf04c953bdbb8922.tar.xz
(svn r10395) -Fix [YAPF]: missing include + some signed/unsigned comparison warnings
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/dbg_helpers.cpp2
-rw-r--r--src/misc/dbg_helpers.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/misc/dbg_helpers.cpp b/src/misc/dbg_helpers.cpp
index 3dc7f91d4..561de50f3 100644
--- a/src/misc/dbg_helpers.cpp
+++ b/src/misc/dbg_helpers.cpp
@@ -1,4 +1,4 @@
-/* $Id:$ */
+/* $Id$ */
/** @file dbg_helpers.cpp */
#include "../stdafx.h"
diff --git a/src/misc/dbg_helpers.h b/src/misc/dbg_helpers.h
index 7aecd9a02..65bf08a5c 100644
--- a/src/misc/dbg_helpers.h
+++ b/src/misc/dbg_helpers.h
@@ -1,4 +1,4 @@
-/* $Id:$ */
+/* $Id$ */
/** @file dbg_helpers.h */
@@ -67,7 +67,7 @@ inline CStrA ComposeNameT(E value, T &t, const char* t_unk, E val_inv, const cha
} else if (value == 0) {
out = "<none>";
} else {
- for (int i = 0; i < ArrayT<T>::length; i++) {
+ for (size_t i = 0; i < ArrayT<T>::length; i++) {
if ((value & (1 << i)) == 0) continue;
out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t[i]);
value &= ~(E)(1 << i);