Skip to content

Commit

Permalink
fix spurious missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Apr 12, 2023
1 parent 7e32d5c commit e396d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions common/unit_test/Test_Common_LowerBound.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ void test_lower_bound() {
auto randn = [](T n) {
if constexpr (std::is_floating_point_v<T>) {
return T(rand()) / T(RAND_MAX) * n;
} else {
return T(rand()) % n;
}
return T(rand()) % n;
};

T maxEntry = 20;
Expand Down
3 changes: 1 addition & 2 deletions common/unit_test/Test_Common_UpperBound.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ void test_upper_bound() {
auto randn = [](T n) {
if constexpr (std::is_floating_point_v<T>) {
return T(rand()) / T(RAND_MAX) * n;
} else {
return T(rand()) % n;
}
return T(rand()) % n;
};

constexpr T maxEntry = 20;
Expand Down

0 comments on commit e396d18

Please sign in to comment.