Browse Source

math: fix a warning in the matrix determinant code.

legacy
Sam Hocevar 4 years ago
parent
commit
369f2b902f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lol/math/matrix.h

+ 1
- 1
src/lol/math/matrix.h View File

@@ -469,7 +469,7 @@ T determinant(mat_t<T, N, N> const &m)
{
auto lup = lu_decomposition(m);

T det(std::get<2>(lup));
T det(T(std::get<2>(lup)));
for (int i = 0; i < N; ++i)
det *= std::get<0>(lup)[i][i];



Loading…
Cancel
Save