mirror of
https://github.com/opencv/opencv.git
synced 2026-11-23 17:57:56 -06:00
The values at the ends of the 64-bit range were crossed with the CV_32U source as well, where they never reach the narrowing this patch changes - they only exercise the double -> CV_32U conversion that produces the source array. That conversion is not length-independent on macOS/ARM64, so those cases failed there for a reason unrelated to this change. Split the instantiation in two: CV_32U keeps the values that fit its own range, and the 64-bit sources keep the 64-bit extremes, which is where they test the clamp. Reverting the clamp still fails the From64 cases at INT64_MIN and INT64_MAX, so the coverage this adds is unchanged.