From 4cff696133390495e8d9508dd1d1244d59b4dc99 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 3 Apr 2023 11:22:55 +0200 Subject: [PATCH] Cast results back to a float This suppresses a compiler 'type conversion' warning. --- r5dev/mathlib/powsse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/mathlib/powsse.cpp b/r5dev/mathlib/powsse.cpp index 3c217c6e..f3b7dbef 100644 --- a/r5dev/mathlib/powsse.cpp +++ b/r5dev/mathlib/powsse.cpp @@ -63,7 +63,7 @@ float FastLog2(float i) float LogBodge = 0.346607f; float x; float y; - x = *(int*)&i; + x = float(*(int*)&i); x *= OOshift23; //1/pow(2,23); x = x - 127;