From dde1c3bc085f1d3a64fc304bbfac8f765691b3a4 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 23 Mar 2020 15:08:28 -0600 Subject: [PATCH] Fix for clang warning with ARM assembly build --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 42357ea1c..73ed50964 100644 --- a/tests/api.c +++ b/tests/api.c @@ -22474,7 +22474,7 @@ static void test_wolfSSL_BN(void) AssertIntEQ(BN_set_word(a, 1), SSL_SUCCESS); AssertIntEQ(BN_set_word(b, 5), SSL_SUCCESS); - AssertIntEQ(BN_is_word(a, BN_get_word(a)), SSL_SUCCESS); + AssertIntEQ(BN_is_word(a, (WOLFSSL_BN_ULONG)BN_get_word(a)), SSL_SUCCESS); AssertIntEQ(BN_is_word(a, 3), SSL_FAILURE); AssertIntEQ(BN_sub(c, a, b), SSL_SUCCESS); #if defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY)