Mercurial > hg > openttd
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);