diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-03 14:14:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-03 14:14:35 +0100 |
commit | af554a9febee4bedfcfacd457a957e6a231dbd25 (patch) | |
tree | 638cf823e734f8c244f43b4392182130a7677b63 /util-src/crand.c | |
parent | bc2a2bbd4d2545d2dbfd9497101c10cfd2f383cb (diff) | |
download | prosody-af554a9febee4bedfcfacd457a957e6a231dbd25.tar.gz prosody-af554a9febee4bedfcfacd457a957e6a231dbd25.zip |
util.crand: Remove unneeded cast
Diffstat (limited to 'util-src/crand.c')
-rw-r--r-- | util-src/crand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |