fix warnings
This commit is contained in:
@@ -2481,7 +2481,7 @@ Q_EXTERN bspAdvertisement_t bspAds[ MAX_MAP_ADVERTISEMENTS ];
|
||||
allocated = def; \
|
||||
while(reqitem >= allocated && allocated) \
|
||||
allocated *= 2; \
|
||||
if(!allocated || allocated > 2147483647 / sizeof(*ptr)) \
|
||||
if(!allocated || allocated > 2147483647 / (int)sizeof(*ptr)) \
|
||||
{ \
|
||||
Error(#ptr " over 2 GB"); \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user