Specify type explicitly

This commit is contained in:
Alexander Karatarakis 2017-02-16 13:19:43 -08:00
parent 99e369e4a7
commit 8a37cd9b1d

View File

@ -20,7 +20,7 @@ namespace vcpkg::Strings::details
va_list lst;
va_start(lst, fmtstr);
auto sz = _vscprintf(fmtstr, lst);
const int sz = _vscprintf(fmtstr, lst);
std::string output(sz, '\0');
_vsnprintf_s(&output[0], output.size() + 1, output.size() + 1, fmtstr, lst);
va_end(lst);
@ -33,7 +33,7 @@ namespace vcpkg::Strings::details
va_list lst;
va_start(lst, fmtstr);
auto sz = _vscwprintf(fmtstr, lst);
const int sz = _vscwprintf(fmtstr, lst);
std::wstring output(sz, '\0');
_vsnwprintf_s(&output[0], output.size() + 1, output.size() + 1, fmtstr, lst);
va_end(lst);