From ea77cd743e0aaefa8b3fbb0f7d3f5571bb2820f1 Mon Sep 17 00:00:00 2001 From: Aaron Jense Date: Wed, 6 Nov 2019 09:59:31 -0800 Subject: [PATCH] Fix changed sign warning for IAR build --- wolfcrypt/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index d2ff1f381..5408f8071 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -12986,14 +12986,14 @@ static int dh_test_check_pubvalue(void) ret = wc_DhCheckPubValue(prime, sizeof(prime), dh_pubval_fail[i].data, dh_pubval_fail[i].len); if (ret != MP_VAL) - return -7150 - i; + return -7150 - (int)i; } for (i = 0; i < sizeof(dh_pubval_pass) / sizeof(*dh_pubval_pass); i++) { ret = wc_DhCheckPubValue(prime, sizeof(prime), dh_pubval_pass[i].data, dh_pubval_pass[i].len); if (ret != 0) - return -7160 - i; + return -7160 - (int)i; } return 0;