Changeset

7439:4cccaa33b0a1

util.crand: Silence compiler warning
author Kim Alvefur <zash@zash.se>
date Wed, 25 May 2016 16:54:43 +0200
parents 7435:8603b16e85c7
children 7440:5424e24cdcb1
files util-src/crand.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/crand.c	Sun May 22 18:18:23 2016 +0100
+++ b/util-src/crand.c	Wed May 25 16:54:43 2016 +0200
@@ -106,7 +106,7 @@
 
 #endif
 
-	lua_pushlstring(L, buf, ret);
+	lua_pushlstring(L, (const char *)buf, ret);
 #ifndef BUFLEN
 	free(buf);
 #endif