Skip to content

Commit

Permalink
fixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
knelli2 committed Nov 14, 2024
1 parent f51c23a commit 143ce19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ template <typename T>
T SphereTransition::call_impl(const std::array<T, 3>& source_coords) const {
T mag = magnitude(source_coords);
check_magnitudes(mag, false);
return blaze::clamp(a_ * mag + b_, 0.0, 1.0);
return blaze::clamp(T(a_ * mag + b_), 0.0, 1.0);

Check failure on line 91 in src/Domain/CoordinateMaps/TimeDependent/ShapeMapTransitionFunctions/SphereTransition.cpp

View workflow job for this annotation

GitHub Actions / Clang-tidy (Debug)

C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)

Check failure on line 91 in src/Domain/CoordinateMaps/TimeDependent/ShapeMapTransitionFunctions/SphereTransition.cpp

View workflow job for this annotation

GitHub Actions / Clang-tidy (Release)

C-style casts are discouraged; use static_cast (if needed, the cast may be redundant)
}

template <typename T>
Expand Down

0 comments on commit 143ce19

Please sign in to comment.