From 72f0575fb0d6669d83b1cf92ebd5e6b01d6bcac8 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 1 May 2023 10:20:10 -0400 Subject: [PATCH] LibGfx: Fix -Wdouble-promotion for float matrices --- Userland/Libraries/LibGfx/Matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Matrix.h b/Userland/Libraries/LibGfx/Matrix.h index 718b4d4aa6..d01cedcb77 100644 --- a/Userland/Libraries/LibGfx/Matrix.h +++ b/Userland/Libraries/LibGfx/Matrix.h @@ -225,7 +225,7 @@ public: constexpr bool is_invertible() const { - return determinant() != 0.0; + return determinant() != static_cast(0.0); } private: