matrix: debug build fix for braces and defines

This commit is contained in:
Danny Robson 2014-05-09 13:13:18 +10:00
parent 3f909dd273
commit 1b96816bd3

View File

@ -43,10 +43,11 @@ test_identity (const matrix &m) {
for (unsigned int i = 0; i < m.rows (); ++i) for (unsigned int i = 0; i < m.rows (); ++i)
for (unsigned int j = 0; j < m.columns (); ++j) for (unsigned int j = 0; j < m.columns (); ++j)
if (i == j) if (i == j) {
CHECK_HARD (almost_equal (m[i][j], 1.0)); CHECK_HARD (almost_equal (m[i][j], 1.0));
else } else {
CHECK_HARD (almost_equal (m[i][j], 0.0)); CHECK_HARD (almost_equal (m[i][j], 0.0));
}
} }