소스 검색

Fixed compile warning (#8384)

Daegaladh 11 달 전
부모
커밋
3b5b5be574
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/common/strlib.cpp

+ 1 - 1
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<size_t>(n) < size )
 		{
 			self->ptr_ += n;
 			return self->ptr_ - self->buf_;