Fixed compile warning (#8384)

This commit is contained in:
Daegaladh 2024-05-28 15:59:45 +02:00 committed by GitHub
parent 39644a980f
commit 3b5b5be574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1011,7 +1011,7 @@ size_t _StringBuf_Vprintf( const char* file, int line, const char* func, StringB
int n = vsnprintf( self->ptr_, size, fmt, apcopy );
va_end(apcopy);
/* If that worked, return the length. */
if( n > -1 && n < size )
if( n > -1 && static_cast<size_t>(n) < size )
{
self->ptr_ += n;
return self->ptr_ - self->buf_;