From fa07c8f62b0ded8075296f70164cc20926b3538b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Dec 2017 14:14:35 +0100 Subject: util.crand: Remove unneeded cast --- util-src/crand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-src/crand.c b/util-src/crand.c index ed685342..d15fc090 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -59,7 +59,7 @@ int getrandom(void *buf, size_t buflen, unsigned int flags) { #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) -- cgit v1.2.3