Skip to content

Commit

Permalink
style: formatting changed to make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Aug 26, 2023
1 parent c307723 commit 27a0fc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utility/include/mp-units/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ template<Unit auto To, auto R, typename Rep>
if constexpr (To == get_unit(R)) {
return make_quantity<detail::clone_reference_with<To>(R)>(static_cast<Rep>(floor(q.value())));
} else {
return handle_signed_results(make_quantity<detail::clone_reference_with<To>(R)>(
static_cast<Rep>(floor(value_cast<To>(q).value()))));
return handle_signed_results(
make_quantity<detail::clone_reference_with<To>(R)>(static_cast<Rep>(floor(value_cast<To>(q).value()))));
}
} else {
if constexpr (To == get_unit(R)) {
Expand Down Expand Up @@ -207,8 +207,8 @@ template<Unit auto To, auto R, typename Rep>
if constexpr (To == get_unit(R)) {
return make_quantity<detail::clone_reference_with<To>(R)>(static_cast<Rep>(ceil(q.value())));
} else {
return handle_signed_results(make_quantity<detail::clone_reference_with<To>(R)>(
static_cast<Rep>(ceil(value_cast<To>(q).value()))));
return handle_signed_results(
make_quantity<detail::clone_reference_with<To>(R)>(static_cast<Rep>(ceil(value_cast<To>(q).value()))));
}
} else {
if constexpr (To == get_unit(R)) {
Expand Down

0 comments on commit 27a0fc7

Please sign in to comment.