From b59818c46688ac04c3aae0edc7b3d11cd4a782b0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Apr 2024 11:53:29 +0200 Subject: a --- test/bitmask.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/bitmask.cpp b/test/bitmask.cpp index caaaad13..cb19242e 100644 --- a/test/bitmask.cpp +++ b/test/bitmask.cpp @@ -4,7 +4,8 @@ #include "loader/loader.hpp" #include #include -#include +#include +#include namespace floormat { @@ -36,11 +37,10 @@ void bitmask_test() printf("\n"); fflush(stdout); #endif - fm_assert(img.size().product() == Int{data_nbytes}); - const auto len = std::min(data_nbytes, (size_t)bitmask.size()+7 >> 3); + const auto len = Math::min(data_nbytes, (size_t)bitmask.size()+7 >> 3); for (auto i = 0uz; i < len; i++) if ((unsigned char)bitmask.data()[i] != img_bitmask[i]) - fm_abort("wrong value at bit %zu, should be' 0x%02hhx'", i, img_bitmask[i]); + fm_abort("wrong value at byte %zu, should be' 0x%02hhx'", i, img_bitmask[i]); } } // namespace -- cgit v1.2.3