diff --git a/algo/detectors/sts/HitfinderChain.cxx b/algo/detectors/sts/HitfinderChain.cxx
index 6741b561c3c95fda017f1bfae08ecd538370d946..d6360ae6762d2982518239d1028c47c958d79308 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();
       }