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 | fa07c8f62b0ded8075296f70164cc20926b3538b (patch) | |
tree | 638cf823e734f8c244f43b4392182130a7677b63 /util-src | |
parent | 8d02dff4fde50de5c542ad007c1f9ba8b3879c3c (diff) | |
download | prosody-fa07c8f62b0ded8075296f70164cc20926b3538b.tar.gz prosody-fa07c8f62b0ded8075296f70164cc20926b3538b.zip |
util.crand: Remove unneeded cast
Diffstat (limited to 'util-src')
-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) |