diff options
author | Nico Weber <thakis@chromium.org> | 2023-05-01 10:20:10 -0400 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-05-02 17:15:48 +0100 |
commit | 72f0575fb0d6669d83b1cf92ebd5e6b01d6bcac8 (patch) | |
tree | c68a0c9e238ab53897c630742ab22b2c28943076 | |
parent | 82bd7c33d1a9fe2bb0dfefddf0eca5423390fe40 (diff) | |
download | serenity-72f0575fb0d6669d83b1cf92ebd5e6b01d6bcac8.zip |
LibGfx: Fix -Wdouble-promotion for float matrices
-rw-r--r-- | Userland/Libraries/LibGfx/Matrix.h | 2 |
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: |