aboutsummaryrefslogtreecommitdiffstats
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
commitaf554a9febee4bedfcfacd457a957e6a231dbd25 (patch)
tree638cf823e734f8c244f43b4392182130a7677b63
parentbc2a2bbd4d2545d2dbfd9497101c10cfd2f383cb (diff)
downloadprosody-af554a9febee4bedfcfacd457a957e6a231dbd25.tar.gz
prosody-af554a9febee4bedfcfacd457a957e6a231dbd25.zip
util.crand: Remove unneeded cast
-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)