Annotation of pkgsrc/graphics/py-matplotlib/patches/patch-src___image__wrapper.cpp, revision 1.1

1.1     ! ryoon       1: $NetBSD$
        !             2: 
        !             3: * Fix fingerprint mismatch for std::clamp().
        !             4:   abs() returns int, not double.
        !             5: 
        !             6: --- src/_image_wrapper.cpp.orig        2026-06-30 09:58:33.168256719 +0000
        !             7: +++ src/_image_wrapper.cpp
        !             8: @@ -266,7 +266,7 @@ calculate_rms_and_diff(py::array_t<unsigned char> expe
        !             9:  
        !            10:                  if (k != 3) { // Hard-code a fully solid alpha channel by omitting it.
        !            11:                      diff(i, j, k) = static_cast<unsigned char>(std::clamp(
        !            12: -                        abs(pixel_diff) * 10, // Expand differences in luminance domain.
        !            13: +                        std::abs(pixel_diff) * 10, // Expand differences in luminance domain.
        !            14:                          0.0, 255.0));
        !            15:                  }
        !            16:              }

CVSweb <webmaster@jp.NetBSD.org>