Changeset

8446:a72898dde1a0

util.crand: Remove unneeded cast
author Kim Alvefur <zash@zash.se>
date Sun, 03 Dec 2017 14:14:35 +0100
parents 8445:2d3a3d12ec87
children 8447:200f4f1b7833
files util-src/crand.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/crand.c	Sun Dec 03 14:13:56 2017 +0100
+++ b/util-src/crand.c	Sun Dec 03 14:14:35 2017 +0100
@@ -59,7 +59,7 @@
 #endif
 
 int Lrandom(lua_State *L) {
-	const size_t len = (size_t)luaL_checkinteger(L, 1);
+	const size_t len = luaL_checkinteger(L, 1);
 	void *buf = lua_newuserdata(L, len);
 
 #if defined(WITH_GETRANDOM)