From: havoc Date: Wed, 3 Dec 2008 00:38:24 +0000 (+0000) Subject: fix a signedness warning X-Git-Tag: xonotic-v0.1.0preview~2027 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=619c77e42f6fc26703529c081820ffc8b355a2bf;p=xonotic%2Fdarkplaces.git fix a signedness warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8563 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rsurf.c b/gl_rsurf.c index dfe530eb..cbab40d4 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -216,7 +216,7 @@ loc0: s = bound(0, impacts, smax * 16) - impacts; t = bound(0, impactt, tmax * 16) - impactt; i = (int)(s * s + t * t + dist2); - if ((i > maxdist) || (smax > sizeof(sdtable)/sizeof(sdtable[0]))) // smax overflow fix from Andreas Dehmel + if ((i > maxdist) || (smax > (int)(sizeof(sdtable)/sizeof(sdtable[0])))) // smax overflow fix from Andreas Dehmel continue; // reduce calculations