From: Florian Krohm Date: Thu, 21 Aug 2025 21:31:58 +0000 (+0000) Subject: iropt-test: Fix an unwanted integer wrap-around. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d3a4a6a3509452721bb39dc337553e32c2636cb;p=thirdparty%2Fvalgrind.git iropt-test: Fix an unwanted integer wrap-around. --- 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) {