Skip to content

Commit

Permalink
Merge pull request #89 from asalzburger/fix-cast-to-scalar
Browse files Browse the repository at this point in the history
fix: cast to scalar which throws ACTS warning
  • Loading branch information
asalzburger authored Sep 24, 2024
2 parents 8f7c1ea + 8771d89 commit 4af91f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta/include/actsvg/display/geometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ svg::object surface(const std::string& id_, const surface_type& s_,
out_left_s_xy = utils::rotate(out_left_s_xy, alpha);

const auto& str = s_._surface_transform.value()._translation;
translation = {str[0], str[1]};
translation = {static_cast<scalar>(str[0]),
static_cast<scalar>(str[1])};
in_left_s_xy = utils::add<point2, 2u>(in_left_s_xy, translation);
in_right_s_xy = utils::add<point2, 2u>(in_right_s_xy, translation);
out_right_s_xy =
Expand Down

0 comments on commit 4af91f7

Please sign in to comment.