From 3d3a4a6a3509452721bb39dc337553e32c2636cb Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Thu, 21 Aug 2025 21:31:58 +0000 Subject: [PATCH] iropt-test: Fix an unwanted integer wrap-around. --- none/tests/iropt-test/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/none/tests/iropt-test/util.c b/none/tests/iropt-test/util.c index f34936611..4ce30e2a5 100644 --- a/none/tests/iropt-test/util.c +++ b/none/tests/iropt-test/util.c @@ -114,7 +114,7 @@ get_selected_values(IRType type, unsigned *num_val) static const uint64_t values_64bit[] = { 0, 1, 2, UINT8_MAX - 1, UINT8_MAX, UINT8_MAX + 1, UINT16_MAX - 1, UINT16_MAX, UINT16_MAX + 1, - UINT32_MAX - 1, UINT32_MAX, UINT32_MAX + 1, + UINT32_MAX - 1, UINT32_MAX, (uint64_t)UINT32_MAX + 1, UINT64_MAX - 1, UINT64_MAX }; switch (type) { -- 2.47.3