From 3b5b5be574a9d1936f2f273538b6225a45638f23 Mon Sep 17 00:00:00 2001 From: Daegaladh Date: Tue, 28 May 2024 15:59:45 +0200 Subject: [PATCH] Fixed compile warning (#8384) --- src/common/strlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/strlib.cpp b/src/common/strlib.cpp index ddcf462b3a..4bc25ab069 100644 --- a/src/common/strlib.cpp +++ b/src/common/strlib.cpp @@ -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(n) < size ) { self->ptr_ += n; return self->ptr_ - self->buf_;