head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.06.30.10.18.27; author ryoon; state Exp; branches; next ; commitid XqBYVHku6BfAaOLG; desc @@ 1.1 log @graphics/py-matplotlib: Fix build under NetBSD/amd64 11.99.6 at least * C function abs() returns int value and it causes fingerprint mismatch of std:clamp() C++ function. Use std:abs() for C++ instead. @ text @$NetBSD$ * Fix fingerprint mismatch for std::clamp(). abs() returns int, not double. --- src/_image_wrapper.cpp.orig 2026-06-30 09:58:33.168256719 +0000 +++ src/_image_wrapper.cpp @@@@ -266,7 +266,7 @@@@ calculate_rms_and_diff(py::array_t expe if (k != 3) { // Hard-code a fully solid alpha channel by omitting it. diff(i, j, k) = static_cast(std::clamp( - abs(pixel_diff) * 10, // Expand differences in luminance domain. + std::abs(pixel_diff) * 10, // Expand differences in luminance domain. 0.0, 255.0)); } } @