Skip to content

Commit 8c019f2

Browse files
author
beryll1um
committed
fix(matrix): matrix failed constexpr fixed
1 parent 0106f13 commit 8c019f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/unified/core/math/matrix.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Matrix
2020
public:
2121

2222
UNIFIED_CONSTEXPR Matrix() {
23-
if UNIFIED_CONSTEXPR (_rows == _columns) {
23+
if (_rows == _columns) {
2424
for (u32 row = 0; row < _rows; row++)
2525
for (u32 col = 0; col < _columns; col++)
2626
if (row == col) _data[row][col] = _type(1);
@@ -29,7 +29,7 @@ struct Matrix
2929
}
3030

3131
UNIFIED_CONSTEXPR Matrix(const _type &fill) {
32-
if UNIFIED_CONSTEXPR (_rows == _columns) {
32+
if (_rows == _columns) {
3333
for (u32 row = 0; row < _rows; row++)
3434
for (u32 col = 0; col < _columns; col++)
3535
if (row == col) _data[row][col] = fill;

0 commit comments

Comments
 (0)