summaryrefslogtreecommitdiff
path: root/texteff.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-25 09:04:59 +0000
committertron <tron@openttd.org>2005-09-25 09:04:59 +0000
commitbdbceba0cb70ddd0ba8f17d0bfae31e973f7d0f2 (patch)
treed32081413d37e02ae74f2636f2ff0fa5e08da4dc /texteff.c
parentd20bcf3eb5619cb742207e1bc6f59fc7c88f3fc3 (diff)
downloadopenttd-bdbceba0cb70ddd0ba8f17d0bfae31e973f7d0f2.tar.xz
(svn r2984) Use adequate types, this should aid portability a bit
Diffstat (limited to 'texteff.c')
-rw-r--r--texteff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/texteff.c b/texteff.c
index 18325cd05..09fa87228 100644
--- a/texteff.c
+++ b/texteff.c
@@ -57,7 +57,8 @@ void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...
{
char buf[MAX_TEXTMESSAGE_LENGTH];
va_list va;
- int i, length;
+ size_t length;
+ uint i;
va_start(va, message);
vsnprintf(buf, lengthof(buf), message, va);