# HG changeset patch # User Sebastien Jodogne # Date 1582561820 -3600 # Node ID 3971ec6b1f72a273cfaf34664991ae1bb495ea5d # Parent 12253ddefe5aff1fe5b8be092a61a1fe0bb92982 fix for older compilers diff -r 12253ddefe5a -r 3971ec6b1f72 Core/Images/ImageProcessing.cpp --- a/Core/Images/ImageProcessing.cpp Mon Feb 24 17:19:37 2020 +0100 +++ b/Core/Images/ImageProcessing.cpp Mon Feb 24 17:30:20 2020 +0100 @@ -1413,14 +1413,14 @@ return; case PixelFormat_Float32: - // "::min()" must be replaced by "::lowest()" if dealing with float or double + // "::min()" must be replaced by "::lowest()" or "-::max()" if dealing with float or double. if (useRound) { - ShiftScaleInternal(image, image, a, b, std::numeric_limits::lowest()); + ShiftScaleInternal(image, image, a, b, -std::numeric_limits::max()); } else { - ShiftScaleInternal(image, image, a, b, std::numeric_limits::lowest()); + ShiftScaleInternal(image, image, a, b, -std::numeric_limits::max()); } return;