From: Rudolf Polzer Date: Fri, 1 Oct 2010 09:28:27 +0000 (+0200) Subject: fix warnings X-Git-Tag: xonotic-v0.5.0~208 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7b7d0471b6fa47af04c46e95cdfaa70d3a9cc78c;p=xonotic%2Fnetradiant.git fix warnings --- diff --git a/tools/quake3/q3map2/q3map2.h b/tools/quake3/q3map2/q3map2.h index d0f903fb..6c7b8893 100644 --- a/tools/quake3/q3map2/q3map2.h +++ b/tools/quake3/q3map2/q3map2.h @@ -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"); \ } \