]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
fix a signedness warning
[xonotic/darkplaces.git] / gl_rsurf.c
index dfe530ebac9bb1ffdd1b4a59e848c38696d1f857..cbab40d45d30aea1794be85a4342e3b5d79ff287 100644 (file)
@@ -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