summaryrefslogtreecommitdiff
path: root/src/misc/str.hpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2010-03-24 21:24:31 +0000
committerglx <glx@openttd.org>2010-03-24 21:24:31 +0000
commita89fcf53b6e4650fe7f0365e27778ce29d6230d2 (patch)
tree2818c7763593a4d3acdb0163e2adb8f2be1cb000 /src/misc/str.hpp
parent03249ebcfbcf4a73a4e2acc302a89e0878fdb5ec (diff)
downloadopenttd-a89fcf53b6e4650fe7f0365e27778ce29d6230d2.tar.xz
(svn r19516) -Fix (r19467): MSVC 64bit warnings
Diffstat (limited to 'src/misc/str.hpp')
-rw-r--r--src/misc/str.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/str.hpp b/src/misc/str.hpp
index 44595e9a6..de6672031 100644
--- a/src/misc/str.hpp
+++ b/src/misc/str.hpp
@@ -93,14 +93,14 @@ struct CStrA : public CBlobT<char>
/** Add formated string (like vsprintf) at the end of existing contents. */
int AddFormatL(const char *format, va_list args)
{
- uint addSize = max<uint>(strlen(format), 16);
+ size_t addSize = max<size_t>(strlen(format), 16);
addSize += addSize / 2;
int ret;
int err = 0;
for (;;) {
char *buf = MakeFreeSpace(addSize);
ret = vsnprintf(buf, base::GetReserve(), format, args);
- if (ret >= (int)base::GetReserve()) {
+ if (ret >= base::GetReserve()) {
/* Greater return than given count means needed buffer size. */
addSize = ret + 1;
continue;