Skip to content

Commit 7a0038a

Browse files
committed
Missed cast
1 parent 09b96d7 commit 7a0038a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stan/math/opencl/prim/binomial_logit_glm_lpmf.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <stan/math/prim/fun/value_of_rec.hpp>
2121

2222
#include <cmath>
23+
#include <cstdint>
2324

2425
namespace stan {
2526
namespace math {
@@ -37,7 +38,7 @@ return_type_t<T_x_cl, T_alpha_cl, T_beta_cl> binomial_logit_glm_lpmf(
3738
constexpr bool is_alpha_vector = !is_stan_scalar<T_alpha_cl>::value;
3839

3940
const size_t N_instances
40-
= max(max_size(n, N, alpha), static_cast<size_t>(x.rows()));
41+
= max(max_size(n, N, alpha), static_cast<int64_t>(x.rows()));
4142
const size_t N_attributes = x.cols();
4243

4344
check_consistent_sizes(function, "Successes variable", n,

0 commit comments

Comments
 (0)