diff options
author | KUDr <kudr@openttd.org> | 2007-06-30 00:17:07 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-06-30 00:17:07 +0000 |
commit | f9cac3c71b8d545c92658055807398b4b3455f75 (patch) | |
tree | c7ee115033e7d0c32ea3c4ce97505fd579082cc3 /src | |
parent | cbbee4da48034a07a53b40478a8eab9dfa352370 (diff) | |
download | openttd-f9cac3c71b8d545c92658055807398b4b3455f75.tar.xz |
(svn r10395) -Fix [YAPF]: missing include + some signed/unsigned comparison warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/misc/dbg_helpers.cpp | 2 | ||||
-rw-r--r-- | src/misc/dbg_helpers.h | 4 | ||||
-rw-r--r-- | src/yapf/yapf.hpp | 1 |
3 files changed, 4 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); diff --git a/src/yapf/yapf.hpp b/src/yapf/yapf.hpp index 2e107b052..f98a7c607 100644 --- a/src/yapf/yapf.hpp +++ b/src/yapf/yapf.hpp @@ -74,6 +74,7 @@ typedef CPerfStartFake CPerfStart; #include "../misc/crc32.hpp" #include "../misc/blob.hpp" +#include "../misc/str.hpp" #include "../misc/fixedsizearray.hpp" #include "../misc/array.hpp" #include "../misc/hashtable.hpp" |