From 3c5d19e4111a4bd76d0ebd9a7739894330d6fc21 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 18 Feb 2010 01:10:04 +0000 Subject: [PATCH] (svn r19158) -Fix (r19149): MSVC 64 bits compile warning --- src/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cpp b/src/string.cpp index a70b484bd3..16e1e7099d 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 */