Browse Source

Fixed VS build.

Branimir Karadžić 9 years ago
parent
commit
627c5c3ddb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/string.cpp

+ 2 - 2
src/string.cpp

@@ -428,7 +428,7 @@ namespace bx
 		{
 		{
 			va_list argListCopy;
 			va_list argListCopy;
 			va_copy(argListCopy, _argList);
 			va_copy(argListCopy, _argList);
-			len = ::vsnprintf_s(_out, _max, int32_t(-1), _format, argListCopy);
+			len = ::vsnprintf_s(_out, _max, size_t(-1), _format, argListCopy);
 			va_end(argListCopy);
 			va_end(argListCopy);
 		}
 		}
 		return -1 == len ? ::_vscprintf(_format, _argList) : len;
 		return -1 == len ? ::_vscprintf(_format, _argList) : len;
@@ -457,7 +457,7 @@ namespace bx
 		{
 		{
 			va_list argListCopy;
 			va_list argListCopy;
 			va_copy(argListCopy, _argList);
 			va_copy(argListCopy, _argList);
-			len = ::_vsnwprintf_s(_out, _max, int32_t(-1), _format, argListCopy);
+			len = ::_vsnwprintf_s(_out, _max, size_t(-1), _format, argListCopy);
 			va_end(argListCopy);
 			va_end(argListCopy);
 		}
 		}
 		return -1 == len ? ::_vscwprintf(_format, _argList) : len;
 		return -1 == len ? ::_vscwprintf(_format, _argList) : len;