From a89fcf53b6e4650fe7f0365e27778ce29d6230d2 Mon Sep 17 00:00:00 2001 From: glx Date: Wed, 24 Mar 2010 21:24:31 +0000 Subject: (svn r19516) -Fix (r19467): MSVC 64bit warnings --- src/misc/str.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc/str.hpp') 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 /** Add formated string (like vsprintf) at the end of existing contents. */ int AddFormatL(const char *format, va_list args) { - uint addSize = max(strlen(format), 16); + size_t addSize = max(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; -- cgit v1.2.3-54-g00ecf