Diff

util-src/crand.c @ 7439:4cccaa33b0a1

util.crand: Silence compiler warning
author Kim Alvefur <zash@zash.se>
date Wed, 25 May 2016 16:54:43 +0200
parent 7189:72839cafdf36
child 7818:54669df178c2
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