mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
int ->size_t
This commit is contained in:
parent
9e7f8564b6
commit
5e36362a4c
2 changed files with 4 additions and 4 deletions
|
|
@ -14,8 +14,8 @@ std::string fmt::FormatV(const char *fmt, va_list args)
|
|||
for (;;)
|
||||
{
|
||||
std::vector<char> buffptr(length);
|
||||
int printlen = vsnprintf(buffptr.data(), length, fmt, args);
|
||||
if (printlen >= 0 && printlen < length)
|
||||
size_t printlen = vsnprintf(buffptr.data(), length, fmt, args);
|
||||
if (printlen < length)
|
||||
{
|
||||
str = std::string(buffptr.data(), printlen);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue