# HG changeset patch # User Kim Alvefur # Date 1512306836 -3600 # Node ID 2d3a3d12ec8707e5e4e6e9d3eb9d8c7517db29bb # Parent adb07984071465b5367a234f3545ca79c4a138b1 util.crand: Silence signedness warning diff -r adb079840714 -r 2d3a3d12ec87 util-src/crand.c --- a/util-src/crand.c Sat Dec 02 11:11:32 2017 +0100 +++ b/util-src/crand.c Sun Dec 03 14:13:56 2017 +0100 @@ -91,7 +91,7 @@ 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);