Software /
code /
prosody
Diff
util-src/crand.c @ 7820:8a9942086068
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 09 Jan 2017 10:17:39 +0100 |
parent | 7818:54669df178c2 |
child | 7823:9b66ada1487c |
line wrap: on
line diff
--- a/util-src/crand.c Fri Jan 06 17:01:48 2017 +0100 +++ b/util-src/crand.c Mon Jan 09 10:17:39 2017 +0100 @@ -130,6 +130,9 @@ #endif int luaopen_util_crand(lua_State *L) { +#if (LUA_VERSION_NUM > 501) + luaL_checkversion(L); +#endif lua_newtable(L); lua_pushcfunction(L, Lrandom); lua_setfield(L, -2, "bytes");