From d74da4cf0401043003f2da8819554f7198978737 Mon Sep 17 00:00:00 2001 From: vhinger Date: Fri, 7 Mar 2025 11:48:15 +0100 Subject: [PATCH] Fix implicit conversion float->double compiler warning --- slsDetectorCalibration/multiThreadedAnalogDetector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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