Skip to content

Commit 6e15e75

Browse files
authored
Fix compiler warnings on MacOS
1 parent bacaa56 commit 6e15e75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Detectors/TPC/calibration/src/TPCFastSpaceChargeCorrectionHelper.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ std::unique_ptr<o2::gpu::TPCFastSpaceChargeCorrection> TPCFastSpaceChargeCorrect
690690
LOG(warning) << directionName << " correction: error N " << nErrors << "fitted voxel position is outside the voxel: "
691691
<< " sector " << iSector << " row " << iRow << " bin y " << iy << " bin z " << iz
692692
<< msg.str();
693-
maxError[0] = GPUCommonMath::Max(maxError[0], fabs(data.mX - x) / dx);
694-
maxError[1] = GPUCommonMath::Max(maxError[1], fabs(data.mY - vox.mY) / vox.mDy);
695-
maxError[2] = GPUCommonMath::Max(maxError[2], fabs(data.mZ - vox.mZ) / vox.mDz);
693+
maxError[0] = GPUCommonMath::Max<double>(maxError[0], fabs(data.mX - x) / dx);
694+
maxError[1] = GPUCommonMath::Max<double>(maxError[1], fabs(data.mY - vox.mY) / vox.mDy);
695+
maxError[2] = GPUCommonMath::Max<double>(maxError[2], fabs(data.mZ - vox.mZ) / vox.mDz);
696696
}
697697
mutex.unlock();
698698
}

0 commit comments

Comments
 (0)