소스 검색

Suppressing C4018 (#8123)

* suppressing warning C4018

* dinamically get decltype suggested by vstumpf
AoShinHo 1 년 전
부모
커밋
e196eadcaa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/login/loginclif.cpp

+ 1 - 1
src/login/loginclif.cpp

@@ -350,7 +350,7 @@ int logclif_parse_reqauth_sso( int fd, login_session_data& sd, char* ip ){
 		return 0;
 	}
 
-	if( RFIFOREST( fd ) < p->packetLength ){
+	if( static_cast<decltype(p->packetLength)>(RFIFOREST(fd)) < p->packetLength){
 		return 0;
 	}