From aa8e42c7e6455e1b1d8a6b13a4ce124b1c94b3ee Mon Sep 17 00:00:00 2001 From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de> Date: Tue, 5 Dec 2023 16:38:16 +0000 Subject: [PATCH] Update c-style cast. --- algo/detectors/sts/HitfinderChain.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algo/detectors/sts/HitfinderChain.cxx b/algo/detectors/sts/HitfinderChain.cxx index 6741b561c3..d6360ae676 100644 --- a/algo/detectors/sts/HitfinderChain.cxx +++ b/algo/detectors/sts/HitfinderChain.cxx @@ -757,7 +757,7 @@ void sts::HitfinderChain::EnsureClustersSane(gsl::span<ClusterIdx> hClusterIdx, for (int i = 0; i < nClusters; i++) { auto& cidx = clusterIdx[i]; - if ((int) cidx.fIdx < 0 || size_t(cidx.fIdx) >= fHitfinder.maxClustersPerModule) { + if (int(cidx.fIdx) < 0 || size_t(cidx.fIdx) >= fHitfinder.maxClustersPerModule) { L_(fatal) << "Cluster " << i << " of module " << m << " has invalid index " << cidx.fIdx; std::abort(); } -- GitLab