From b71fcb1d1a0199e5972d4a8d752047f239e18c35 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 15 Jun 2026 14:03:36 +0200 Subject: [PATCH] fixed apple clang warning --- src/hist/PixelHistogram.test.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hist/PixelHistogram.test.cpp b/src/hist/PixelHistogram.test.cpp index db2f9ca1..0f67d753 100644 --- a/src/hist/PixelHistogram.test.cpp +++ b/src/hist/PixelHistogram.test.cpp @@ -1,6 +1,7 @@ #include #include +#include "aare/logger.hpp" #include #include #include @@ -25,14 +26,15 @@ namespace { } // namespace TEST_CASE("Fill one pixel of a 5x10 histogram") { - PixelHistogram hist(5, 10, 20, 0.0, 10.0); + PixelHistogram hist(5, 10, 20, 0.0f, 10.0f); NDArray image( - {5, 10}, -1.0); // Need to fill with -1 to not generate counts + {5, 10}, -1.0f); // Need to fill with -1 to not generate counts - image(2, 3) = 5.7; // This should go into bin 11 (since bins are [0-0.5), - // [0.5-1.0), ..., [9.5-10.0)) + image(2, 3) = 5.7f; // This should go into bin 11 (since bins are [0-0.5), + // [0.5-1.0), ..., [9.5-10.0)) // fill_blocking(hist, image.view()); + hist.fill_async(NDArray(image)); hist.flush(); // Wait for the async fill to complete before we check the // results