shithub: choc

Download patch

ref: 5d0720d59b521da5686dff85ccfcbf65d79a2b8a
parent: 670212f2ee7c468790c3e3b351b45135c274ef9c
author: Turo Lamminen <[email protected]>
date: Sun May 3 11:26:37 EDT 2020

heretic: Fix clang abs warning in R_StoreWallRange

--- a/src/heretic/r_segs.c
+++ b/src/heretic/r_segs.c
@@ -356,7 +356,7 @@
 // calculate rw_distance for scale calculation
 //
     rw_normalangle = curline->angle + ANG90;
-    offsetangle = abs(rw_normalangle - rw_angle1);
+    offsetangle = abs((int) rw_normalangle - (int) rw_angle1);
     if (offsetangle > ANG90)
         offsetangle = ANG90;
     distangle = ANG90 - offsetangle;