mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
Fix implicit conversion float->double compiler warning
This commit is contained in:
parent
9321d6d03a
commit
d74da4cf04
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user