mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 23:39:10 +08:00
Specify type explicitly
This commit is contained in:
parent
99e369e4a7
commit
8a37cd9b1d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user