fix warnings

This commit is contained in:
Rudolf Polzer 2010-10-01 11:28:27 +02:00
parent 3dd2ff55b1
commit 7b7d0471b6

View File

@ -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"); \
} \