From 732d5ad8a8fb23c2a7f75fbff90c923090898957 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 17 Jan 2023 15:30:28 +0100 Subject: util.hashes: Silence compiler warning about char pointer signedness Introduced in dbe9781fd278 --- util-src/hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-src/hashes.c b/util-src/hashes.c index d949193c..94f8bcb2 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -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); -- cgit v1.2.3