mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Fix cast warnings on test with -1.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user