Changeset

8445:2d3a3d12ec87

util.crand: Silence signedness warning
author Kim Alvefur <zash@zash.se>
date Sun, 03 Dec 2017 14:13:56 +0100
parents 8444:adb079840714
children 8446:a72898dde1a0
files util-src/crand.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);