changeset 7122:c5da52de6e18 draft

(svn r10395) -Fix [YAPF]: missing include + some signed/unsigned comparison warnings
author KUDr <KUDr@openttd.org>
date Sat, 30 Jun 2007 00:17:07 +0000
parents ac9127d52126
children b89905ec574e
files src/misc/dbg_helpers.cpp src/misc/dbg_helpers.h src/yapf/yapf.hpp
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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"
--- 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 @@
 	} 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);
--- a/src/yapf/yapf.hpp
+++ b/src/yapf/yapf.hpp
@@ -74,6 +74,7 @@
 
 #include "../misc/crc32.hpp"
 #include "../misc/blob.hpp"
+#include "../misc/str.hpp"
 #include "../misc/fixedsizearray.hpp"
 #include "../misc/array.hpp"
 #include "../misc/hashtable.hpp"