mirror of https://github.com/OpenTTD/OpenTTD
(svn r10395) -Fix [YAPF]: missing include + some signed/unsigned comparison warnings
parent
cbbee4da48
commit
f9cac3c71b
|
@ -1,4 +1,4 @@
|
||||||
/* $Id:$ */
|
/* $Id$ */
|
||||||
|
|
||||||
/** @file dbg_helpers.cpp */
|
/** @file dbg_helpers.cpp */
|
||||||
#include "../stdafx.h"
|
#include "../stdafx.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id:$ */
|
/* $Id$ */
|
||||||
|
|
||||||
/** @file dbg_helpers.h */
|
/** @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) {
|
} else if (value == 0) {
|
||||||
out = "<none>";
|
out = "<none>";
|
||||||
} else {
|
} 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;
|
if ((value & (1 << i)) == 0) continue;
|
||||||
out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t[i]);
|
out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t[i]);
|
||||||
value &= ~(E)(1 << i);
|
value &= ~(E)(1 << i);
|
||||||
|
|
|
@ -74,6 +74,7 @@ typedef CPerfStartFake CPerfStart;
|
||||||
|
|
||||||
#include "../misc/crc32.hpp"
|
#include "../misc/crc32.hpp"
|
||||||
#include "../misc/blob.hpp"
|
#include "../misc/blob.hpp"
|
||||||
|
#include "../misc/str.hpp"
|
||||||
#include "../misc/fixedsizearray.hpp"
|
#include "../misc/fixedsizearray.hpp"
|
||||||
#include "../misc/array.hpp"
|
#include "../misc/array.hpp"
|
||||||
#include "../misc/hashtable.hpp"
|
#include "../misc/hashtable.hpp"
|
||||||
|
|
Loading…
Reference in New Issue