# HG changeset patch # User Kim Alvefur # Date 1484908867 -3600 # Node ID 9b66ada1487cd3c32daa443e0f80d78b48a6baa0 # Parent 0dea440bdd4643e9908a86fbb46a16987d0eeaec util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3 diff -r 0dea440bdd46 -r 9b66ada1487c util-src/crand.c --- a/util-src/crand.c Fri Jan 13 18:29:30 2017 +0100 +++ b/util-src/crand.c Fri Jan 20 11:41:07 2017 +0100 @@ -57,7 +57,7 @@ unsigned char *buf; #endif int ret = 0; - size_t len = (size_t)luaL_checkint(L, 1); + size_t len = (size_t)luaL_checkinteger(L, 1); #ifdef BUFLEN len = len > BUFLEN ? BUFLEN : len; #else @@ -71,6 +71,7 @@ */ return 2; } + #endif #if defined(WITH_GETRANDOM)