Browse Source

Suppressing C4018 (#8123)

* suppressing warning C4018

* dinamically get decltype suggested by vstumpf
AoShinHo 1 năm trước cách đây
mục cha
commit
e196eadcaa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 	}