Skip to content

Commit 6cbc5eb

Browse files
committed
DPL: explicit cast enum to float
Required by C++20.
1 parent efe84cb commit 6cbc5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/TRDTracking/GPUTRDTracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ GPUd() int GPUTRDTracker_t<TRDTRK, PROP>::GetSector(float alpha) const
998998
} else if (alpha >= 2.f * CAMath::Pi()) {
999999
alpha -= 2.f * CAMath::Pi();
10001000
}
1001-
return (int)(alpha * kNSectors / (2.f * CAMath::Pi()));
1001+
return (int)(alpha * (float)kNSectors / (2.f * CAMath::Pi()));
10021002
}
10031003

10041004
template <class TRDTRK, class PROP>

0 commit comments

Comments
 (0)