summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-05-01 10:20:10 -0400
committerSam Atkins <atkinssj@gmail.com>2023-05-02 17:15:48 +0100
commit72f0575fb0d6669d83b1cf92ebd5e6b01d6bcac8 (patch)
treec68a0c9e238ab53897c630742ab22b2c28943076
parent82bd7c33d1a9fe2bb0dfefddf0eca5423390fe40 (diff)
downloadserenity-72f0575fb0d6669d83b1cf92ebd5e6b01d6bcac8.zip
LibGfx: Fix -Wdouble-promotion for float matrices
-rw-r--r--Userland/Libraries/LibGfx/Matrix.h2
1 files changed, 1 insertions, 1 deletions
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<T>(0.0);
}
private: