From 3193ecb2c3537568433216d6b595295c667b3933 Mon Sep 17 00:00:00 2001 From: Reda Chouk Date: Tue, 1 Oct 2024 15:07:59 +0200 Subject: [PATCH] fixed Wconversion in the api.c file --- tests/api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 6d3cc4043..563f477af 100644 --- a/tests/api.c +++ b/tests/api.c @@ -73076,7 +73076,7 @@ static int test_wolfSSL_OBJ_sn(void) #if !defined(NO_BIO) static word32 TXT_DB_hash(const WOLFSSL_STRING *s) { - return lh_strhash(s[3]); + return (word32)lh_strhash(s[3]); } static int TXT_DB_cmp(const WOLFSSL_STRING *a, const WOLFSSL_STRING *b) @@ -73124,7 +73124,8 @@ static int test_wolfSSL_TXT_DB(void) BIO_free(bio); /* Test index */ - ExpectIntEQ(TXT_DB_create_index(db, 3, NULL, (wolf_sk_hash_cb)TXT_DB_hash, + ExpectIntEQ(TXT_DB_create_index(db, 3, NULL, + (wolf_sk_hash_cb)(long unsigned int)TXT_DB_hash, (wolf_lh_compare_cb)TXT_DB_cmp), 1); ExpectNotNull(TXT_DB_get_by_index(db, 3, (WOLFSSL_STRING*)fields)); fields[3] = "12DA";