Fix implicit conversion float->double compiler warning

This commit is contained in:
hinger_v 2025-03-07 11:48:15 +01:00
parent 9321d6d03a
commit d74da4cf04

View File

@ -524,7 +524,7 @@ class multiThreadedAnalogDetector {
// Lambda for pixel conversion
auto convert_pixel = [t](int pixel) -> float {
return (t > 0) ? static_cast<float>(std::max(0, pixel)) / t : pixel;
return (t > 0) ? static_cast<float>(std::max(0, pixel)) / static_cast<float>(t) : pixel;
}; // t ... threshold
// Loop over each storage cell