Software /
code /
prosody
Changeset
12844:a3ec87ad8e48
util.hashes: Silence compiler warning about char pointer signedness
Introduced in dbe9781fd278
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 17 Jan 2023 15:30:28 +0100 |
parents | 12843:e609e10966f5 |
children | 12845:f306336b7e99 |
files | util-src/hashes.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/hashes.c Sat Jan 14 14:09:33 2023 +0100 +++ b/util-src/hashes.c Tue Jan 17 15:30:28 2023 +0100 @@ -229,7 +229,7 @@ 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);