Mercurial > hg > openttd
changeset 19224:9bb2cce59004 draft
(svn r24109) -Fix (r24099): Warning from not using size_t to store the return value of strlen().
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Mon, 09 Apr 2012 13:08:20 +0000 |
parents | f7ca51a69f28 |
children | 6b2b85c73b6c |
files | src/debug.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/debug.cpp +++ b/src/debug.cpp @@ -81,7 +81,7 @@ */ 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);