mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +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
|
// Lambda for pixel conversion
|
||||||
auto convert_pixel = [t](int pixel) -> float {
|
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
|
}; // t ... threshold
|
||||||
|
|
||||||
// Loop over each storage cell
|
// Loop over each storage cell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user