From 619c77e42f6fc26703529c081820ffc8b355a2bf Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 3 Dec 2008 00:38:24 +0000 Subject: [PATCH] fix a signedness warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8563 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2