Browse Source

LibGfx: Fix -Wdouble-promotion for float matrices

Nico Weber 2 years ago
parent
commit
72f0575fb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibGfx/Matrix.h

+ 1 - 1
Userland/Libraries/LibGfx/Matrix.h

@@ -225,7 +225,7 @@ public:
 
 
     constexpr bool is_invertible() const
     constexpr bool is_invertible() const
     {
     {
-        return determinant() != 0.0;
+        return determinant() != static_cast<T>(0.0);
     }
     }
 
 
 private:
 private: