(svn r10395) -Fix [YAPF]: missing include + some signed/unsigned comparison warnings
authorKUDr
Sat, 30 Jun 2007 00:17:07 +0000
changeset 7122 444ddcad8909
parent 7121 ac2b3710f262
child 7123 25daf2b19a33
(svn r10395) -Fix [YAPF]: missing include + some signed/unsigned comparison warnings
src/misc/dbg_helpers.cpp
src/misc/dbg_helpers.h
src/yapf/yapf.hpp
--- a/src/misc/dbg_helpers.cpp	Fri Jun 29 23:55:16 2007 +0000
+++ b/src/misc/dbg_helpers.cpp	Sat Jun 30 00:17:07 2007 +0000
@@ -1,4 +1,4 @@
-/* $Id:$ */
+/* $Id$ */
 
 /** @file dbg_helpers.cpp */
 #include "../stdafx.h"
--- a/src/misc/dbg_helpers.h	Fri Jun 29 23:55:16 2007 +0000
+++ b/src/misc/dbg_helpers.h	Sat Jun 30 00:17:07 2007 +0000
@@ -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	Fri Jun 29 23:55:16 2007 +0000
+++ b/src/yapf/yapf.hpp	Sat Jun 30 00:17:07 2007 +0000
@@ -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"