diff --git a/slsDetectorCalibration/multiThreadedAnalogDetector.h b/slsDetectorCalibration/multiThreadedAnalogDetector.h index 497687d94..e20e7451c 100644 --- a/slsDetectorCalibration/multiThreadedAnalogDetector.h +++ b/slsDetectorCalibration/multiThreadedAnalogDetector.h @@ -524,7 +524,7 @@ class multiThreadedAnalogDetector { // Lambda for pixel conversion auto convert_pixel = [t](int pixel) -> float { - return (t > 0) ? static_cast(std::max(0, pixel)) / t : pixel; + return (t > 0) ? static_cast(std::max(0, pixel)) / static_cast(t) : pixel; }; // t ... threshold // Loop over each storage cell