From 53bfc6fa59ee1c79223ceb2bbed60338158037a6 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 13 Aug 2021 20:20:19 +0200 Subject: [PATCH] cellGem: fix floating point warning --- rpcs3/Emu/Cell/Modules/cellGem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGem.cpp b/rpcs3/Emu/Cell/Modules/cellGem.cpp index ad19079818..f6b1673098 100644 --- a/rpcs3/Emu/Cell/Modules/cellGem.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGem.cpp @@ -1161,7 +1161,7 @@ error_code cellGemHSVtoRGB(f32 h, f32 s, f32 v, vm::ptr r, vm::ptr g, h = std::clamp(h, 0.0f, 360.0f); const f32 c = v * s; - const f32 x = c * (1.0f - abs(fmod(h / 60.0f, 2.0f) - 1.0f)); + const f32 x = c * (1.0f - fabs(fmod(h / 60.0f, 2.0f) - 1.0f)); const f32 m = v - c; f32 r_tmp{0.0};