util.hashes: Silence compiler warning about char pointer signedness

Introduced in dbe9781fd278
This commit is contained in:
Kim Alvefur 2023-01-17 15:30:28 +01:00
parent 564054677f
commit 732d5ad8a8

View file

@ -229,7 +229,7 @@ static int Levp_hkdf(lua_State *L, const EVP_MD *evp) {
size_t input_len, salt_len, info_len;
size_t actual_out_len = luaL_checkinteger(L, 1);
const char *input = luaL_checklstring(L, 2, &input_len);
const unsigned char *input = (unsigned char *)luaL_checklstring(L, 2, &input_len);
const unsigned char *salt = (unsigned char *)luaL_optlstring(L, 3, NULL, &salt_len);
const unsigned char *info = (unsigned char *)luaL_checklstring(L, 4, &info_len);