diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-25 14:36:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-25 14:36:29 +0100 |
commit | 947a8d3ab773b539dfc18da20d8e5934b5ea9d62 (patch) | |
tree | f1a2ce5e913c8553a3fd6087a70f84f82c00669b /test | |
parent | 7d659dbe06cd8efc1d6eb4ef2c5fbc8ae27a4568 (diff) |
use operator""uz c++23 polyfill
Diffstat (limited to 'test')
-rw-r--r-- | test/bitmask.cpp | 4 | ||||
-rw-r--r-- | test/serializer.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/bitmask.cpp b/test/bitmask.cpp index 1b3deea9..dd5f2759 100644 --- a/test/bitmask.cpp +++ b/test/bitmask.cpp @@ -47,7 +47,7 @@ void bitmask_test() auto bitmask = anim_atlas::make_bitmask(img); fm_assert(img.pixelSize() == 4 && (size_t)img.size().product() >= data_nbytes); #ifdef DO_GENERATE - for (auto i = 0_uz; i < data_nbytes; i++) + for (auto i = 0uz; i < data_nbytes; i++) { if (i && i % 16 == 0) printf("\n"); @@ -59,7 +59,7 @@ void bitmask_test() fflush(stdout); #endif const auto len = std::min(data_nbytes, (size_t)bitmask.size()+7 >> 3); - for (auto i = 0_uz; i < len; i++) + for (auto i = 0uz; i < len; i++) if ((unsigned char)bitmask.data()[i] != data_door_close[i]) fm_abort("wrong value at bit %zu, should be' 0x%02hhx'", i, data_door_close[i]); } diff --git a/test/serializer.cpp b/test/serializer.cpp index 236003cf..0e10b899 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -49,13 +49,13 @@ void assert_chunks_equal(const chunk& a, const chunk& b) { fm_assert(a.entities().size() == b.entities().size()); - for (auto i = 0_uz; i < TILE_COUNT; i++) + for (auto i = 0uz; i < TILE_COUNT; i++) { const auto &a1 = a[i], &b1 = b[i]; fm_assert(a1 == b1); } - for (auto i = 0_uz; i < a.entities().size(); i++) + for (auto i = 0uz; i < a.entities().size(); i++) { const auto& ae = *a.entities()[i]; const auto& be = *b.entities()[i]; |