cast to fix warning

This commit is contained in:
Matt Johnston 2020-05-26 19:57:28 +08:00
parent d277f140ba
commit 9e25854b41

View File

@ -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;
}