Skip to content

Commit 1f0ce37

Browse files
hageboeckguitargeek
authored andcommitted
[math] Fix a debian build failure with -Werror
(cherry picked from commit 8bee4d5)
1 parent f473d7c commit 1f0ce37

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

math/minuit2/test/testMinuit2.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,9 @@ TEST(Minuit2, AnalyticalHessianLimitTransformation)
405405
// magnitude, and dropping the curvature term changes them by ~100%.
406406
const double tol = 1e-3 * std::max(std::abs(fd), 1.0);
407407
EXPECT_NEAR(hAnalytic(i, j), fd, tol) << "Hessian mismatch at (" << i << "," << j << ")";
408-
if (i == j)
408+
if (i == j) {
409409
EXPECT_NEAR(g2Analytic(i), fd, tol) << "G2 mismatch at " << i;
410+
}
410411
}
411412
}
412413
}

0 commit comments

Comments
 (0)