From 955d9432cde30f58f596723b75143e60fcd1a5f4 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:38:50 +0100 Subject: [PATCH] DPL: explicit cast enum to float Required by C++20. --- GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx b/GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx index 81c452926d7af..46479091d7c3a 100644 --- a/GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx +++ b/GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx @@ -998,7 +998,7 @@ GPUd() int GPUTRDTracker_t::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