From 058ffad657c55d1f21a380167ca792b90e6dd8d1 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 11 Dec 2023 16:25:47 -0800 Subject: [PATCH] Fix cast warnings on test with -1. --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 74ac22831..cc9c6c80e 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -15427,7 +15427,7 @@ static int simple_mem_test(int sz) static wc_test_ret_t const_byte_ptr_test(const byte* in, word32 *outJ) { wc_test_ret_t ret = 0; - volatile word32 j = -1UL; /* must be volatile to properly detect error */ + volatile word32 j = (word32)-1; /* must be volatile to properly detect error */ ret = (wc_test_ret_t)*in; /* accessed *in value. */ (void)ret;