Skip to content

Commit 058ffad

Browse files
committed
Fix cast warnings on test with -1.
1 parent 8e44018 commit 058ffad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/test/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15427,7 +15427,7 @@ static int simple_mem_test(int sz)
1542715427
static wc_test_ret_t const_byte_ptr_test(const byte* in, word32 *outJ)
1542815428
{
1542915429
wc_test_ret_t ret = 0;
15430-
volatile word32 j = -1UL; /* must be volatile to properly detect error */
15430+
volatile word32 j = (word32)-1; /* must be volatile to properly detect error */
1543115431

1543215432
ret = (wc_test_ret_t)*in; /* accessed *in value. */
1543315433
(void)ret;

0 commit comments

Comments
 (0)