Module: wine Branch: master Commit: a542400d15b19cd8ddfac62553e38ac68dec8d38 URL: https://gitlab.winehq.org/wine/wine/-/commit/a542400d15b19cd8ddfac62553e38ac...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Feb 27 01:06:09 2024 +0100
vcomp/tests: Use limits.h macros in for_static_i8_cb.
Fixes clang warning: vcomp.c:1346:34: warning: overflow in expression; result is -9223372036854775808 with type 'long long' [-Winteger-overflow]
---
dlls/vcomp/tests/vcomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/vcomp/tests/vcomp.c b/dlls/vcomp/tests/vcomp.c index 67000e9f343..43a9cc7ce16 100644 --- a/dlls/vcomp/tests/vcomp.c +++ b/dlls/vcomp/tests/vcomp.c @@ -1342,8 +1342,8 @@ static void CDECL for_static_i8_cb(void) { 100, 200, 3, -1 }, { 0x7ffffffe, -0x80000000, 1, 123 }, { 0x7fffffff, -0x80000000, 1, 123 }, - { 0x7ffffffffffffffeLL, -0x8000000000000000LL, 1, 123 }, - { 0x7fffffffffffffffLL, -0x8000000000000000LL, 1, 123 }, + { I64_MAX - 1, I64_MIN, 1, 123 }, + { I64_MAX, I64_MIN, 1, 123 }, }; int num_threads = pomp_get_num_threads(); int thread_num = pomp_get_thread_num();