Skip to content

Commit

Permalink
fix: static_cast<float>(sqrt(...)) to avoid c++-narrowing warning/err…
Browse files Browse the repository at this point in the history
…or (again) (#1682)

### Briefly, what does this PR introduce?
#1675 again see there.
  • Loading branch information
wdconinc authored Dec 1, 2024
1 parent 0790b17 commit 3a507b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/tracking/TrackPropagation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void TrackPropagation::propagateToSurfaceList(

// time
const float time{static_cast<float>(parameter(Acts::eBoundTime))};
const float timeError{sqrt(static_cast<float>(covariance(Acts::eBoundTime, Acts::eBoundTime)))};
const float timeError{static_cast<float>(sqrt(covariance(Acts::eBoundTime, Acts::eBoundTime)))};

// Direction
const float theta(parameter[Acts::eBoundTheta]);
Expand Down

0 comments on commit 3a507b8

Please sign in to comment.