Skip to content

Commit

Permalink
DPL: explicit cast enum to float
Browse files Browse the repository at this point in the history
Required by C++20.
  • Loading branch information
ktf committed Dec 4, 2023
1 parent e0b472b commit 955d943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ GPUd() int GPUTRDTracker_t<TRDTRK, PROP>::GetSector(float alpha) const
} else if (alpha >= 2.f * CAMath::Pi()) {
alpha -= 2.f * CAMath::Pi();
}
return (int)(alpha * kNSectors / (2.f * CAMath::Pi()));
return (int)(alpha * (float)kNSectors / (2.f * CAMath::Pi()));
}

template <class TRDTRK, class PROP>
Expand Down

0 comments on commit 955d943

Please sign in to comment.