Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSaydakov committed May 8, 2024
1 parent 90a7bba commit b4ee4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theta/include/theta_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class theta_build_helper{
// consistent way of initializing theta from p
// avoids multiplication if p == 1 since it might not yield MAX_THETA exactly
static uint64_t starting_theta_from_p(float p) {
if (p < 1) return static_cast<uint64_t>(theta_constants::MAX_THETA * p);
if (p < 1) return static_cast<uint64_t>(static_cast<double>(theta_constants::MAX_THETA) * p);
return theta_constants::MAX_THETA;
}

Expand Down

0 comments on commit b4ee4b4

Please sign in to comment.