فهرست منبع

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