Skip to content

Commit 2e87eca

Browse files
authored
Merge pull request #2920 from stan-dev/fix/inv_wishart_chol_test_type
inv_wishart_cholesky_test: make type of NaN argument double
2 parents 950c970 + 4ff857f commit 2e87eca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/math/prim/prob/inv_wishart_cholesky_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ TEST(ProbDistributionsInvWishartCholesky, dof_0) {
8080
MatrixXd L_Y = Y.llt().matrixL();
8181
MatrixXd L_S = Sigma.llt().matrixL();
8282

83-
unsigned int dof = std::numeric_limits<double>::quiet_NaN();
83+
double dof = std::numeric_limits<double>::quiet_NaN();
8484
EXPECT_THROW(stan::math::inv_wishart_cholesky_lpdf(L_Y, dof, L_S),
8585
std::domain_error);
8686
}

0 commit comments

Comments
 (0)