summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-09 13:08:20 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-09 13:08:20 +0000
commitafdaddd392c5fe1af430e4ae3bbb708e57c9c157 (patch)
tree4237dc4db3d38d609c8d4e99f2cb437db589c56a
parentd7d89bc80610beae24ab24b7368f4c28e1ad1cda (diff)
downloadopenttd-afdaddd392c5fe1af430e4ae3bbb708e57c9c157.tar.xz
(svn r24109) -Fix (r24099): Warning from not using size_t to store the return value of strlen().
-rw-r--r--src/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 11166dafe..e6fb61292 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -81,7 +81,7 @@ struct DebugLevel {
*/
char *DumpDebugFacilityNames(char *buf, char *last)
{
- int length = 0;
+ size_t length = 0;
for (const DebugLevel *i = debug_level; i != endof(debug_level); ++i) {
if (length == 0) {
buf = strecpy(buf, "List of debug facility names:\n", last);