From 8d02dff4fde50de5c542ad007c1f9ba8b3879c3c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Dec 2017 14:13:56 +0100 Subject: util.crand: Silence signedness warning --- util-src/crand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src') diff --git a/util-src/crand.c b/util-src/crand.c index cff82dab..ed685342 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -91,7 +91,7 @@ int Lrandom(lua_State *L) { return lua_error(L); } - if(RAND_bytes(buf, len) != 1) { + if(RAND_bytes((unsigned char *)buf, len) != 1) { /* TODO ERR_get_error() */ lua_pushstring(L, "RAND_bytes() failed"); return lua_error(L); -- cgit v1.2.3