aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-03 14:14:35 +0100
committerKim Alvefur <zash@zash.se>2017-12-03 14:14:35 +0100
commitfa07c8f62b0ded8075296f70164cc20926b3538b (patch)
tree638cf823e734f8c244f43b4392182130a7677b63 /util-src/crand.c
parent8d02dff4fde50de5c542ad007c1f9ba8b3879c3c (diff)
downloadprosody-fa07c8f62b0ded8075296f70164cc20926b3538b.tar.gz
prosody-fa07c8f62b0ded8075296f70164cc20926b3538b.zip
util.crand: Remove unneeded cast
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c2
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)