summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-18 01:10:04 +0000
committerrubidium <rubidium@openttd.org>2010-02-18 01:10:04 +0000
commit3c5d19e4111a4bd76d0ebd9a7739894330d6fc21 (patch)
tree9dd6b664e9bf86e66d5eea0bce8a8d9b8a131716 /src
parentf02d6783e9d38d1287b5b0d370c82fb0510dc7ab (diff)
downloadopenttd-3c5d19e4111a4bd76d0ebd9a7739894330d6fc21.tar.xz
(svn r19158) -Fix (r19149): MSVC 64 bits compile warning
Diffstat (limited to 'src')
-rw-r--r--src/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp
index a70b484bd..16e1e7099 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -253,7 +253,7 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
/* The buffer is too small for _vsnprintf to write the
* null-terminator at its end and return size. */
str[size - 1] = '\0';
- return size;
+ return (int)size;
}
#endif /* _MSC_VER */