Skip to content

Commit

Permalink
Missed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Jun 18, 2024
1 parent 09b96d7 commit 7a0038a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stan/math/opencl/prim/binomial_logit_glm_lpmf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <stan/math/prim/fun/value_of_rec.hpp>

#include <cmath>
#include <cstdint>

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

const size_t N_instances
= max(max_size(n, N, alpha), static_cast<size_t>(x.rows()));
= max(max_size(n, N, alpha), static_cast<int64_t>(x.rows()));
const size_t N_attributes = x.cols();

check_consistent_sizes(function, "Successes variable", n,
Expand Down

0 comments on commit 7a0038a

Please sign in to comment.