瀏覽代碼

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;
 	}