summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2015-08-10 20:21:29 +0000
committermichi_cc <michi_cc@openttd.org>2015-08-10 20:21:29 +0000
commit35b77450f80580da2aa7f087aa2a1631b92ebd62 (patch)
tree375c4648c1566b3cfc715e894764fdd26763e162 /src/strgen
parente5d105900ddcb82bc2adf7accb4be010e3b20113 (diff)
downloadopenttd-35b77450f80580da2aa7f087aa2a1631b92ebd62.tar.xz
(svn r27380) -Fix: [Win32] Compilation with MSVC2015.
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strgen/strgen_base.cpp b/src/strgen/strgen_base.cpp
index c41f3d9b4..385ca72b2 100644
--- a/src/strgen/strgen_base.cpp
+++ b/src/strgen/strgen_base.cpp
@@ -378,7 +378,7 @@ static int TranslateArgumentIdx(int arg, int offset = 0);
static void EmitWordList(Buffer *buffer, const char * const *words, uint nw)
{
buffer->AppendByte(nw);
- for (uint i = 0; i < nw; i++) buffer->AppendByte((uint)strlen(words[i]) + 1);
+ for (uint i = 0; i < nw; i++) buffer->AppendByte((byte)strlen(words[i]) + 1);
for (uint i = 0; i < nw; i++) {
for (uint j = 0; words[i][j] != '\0'; j++) buffer->AppendByte(words[i][j]);
buffer->AppendByte(0);