From 627c5c3ddbf568c56b5d87a7b7deea039435021d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 14 Feb 2017 22:46:01 -0800 Subject: [PATCH] Fixed VS build. --- src/string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/string.cpp b/src/string.cpp index a0c4344..b2e3fe5 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -428,7 +428,7 @@ namespace bx { va_list argListCopy; 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); } return -1 == len ? ::_vscprintf(_format, _argList) : len; @@ -457,7 +457,7 @@ namespace bx { va_list argListCopy; 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); } return -1 == len ? ::_vscwprintf(_format, _argList) : len;