From a00bf2fee662d78d96b610ad2e6bb86c2e5b55f9 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 26 May 2020 19:57:28 +0800 Subject: cast to fix warning --- signkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signkey.c b/signkey.c index 49801f3..92fe6a2 100644 --- a/signkey.c +++ b/signkey.c @@ -169,7 +169,7 @@ enum signkey_type signkey_type_from_signature(enum signature_type sigtype) { return DROPBEAR_SIGNKEY_RSA; } #endif - assert(sigtype < DROPBEAR_SIGNKEY_NUM_NAMED); + assert((int)sigtype < (int)DROPBEAR_SIGNKEY_NUM_NAMED); return (enum signkey_type)sigtype; } -- cgit v1.2.1