fix compiling for clang

This commit is contained in:
Alam Ed Arias 2018-12-14 21:31:00 -05:00
parent 78634679f1
commit 15d0673685
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ static polyvertex_t *fracdivline(fdivline_t *bsp, polyvertex_t *v1,
v2dy = bsp->dy;
den = v2dy*v1dx - v2dx*v1dy;
if (fabsf(den) < 1.0E-36f)
if (fabsf((float)den) < 1.0E-36f)
return NULL; // parallel
// first check the frac along the polygon segment,

View File

@ -1220,7 +1220,7 @@ INT32 R_CreateColormap(char *p1, char *p2, char *p3)
continue;
if (maskcolor == extra_colormaps[i].maskcolor
&& fadecolor == extra_colormaps[i].fadecolor
&& fabsf(maskamt - extra_colormaps[i].maskamt) < 1.0E-36f
&& fabsf((float)(maskamt - extra_colormaps[i].maskamt)) < 1.0E-36f
&& fadestart == extra_colormaps[i].fadestart
&& fadeend == extra_colormaps[i].fadeend
&& fog == extra_colormaps[i].fog)