Software /
code /
prosody
Diff
util-src/pposix.c @ 7966:30309fd01d76
util.pposix: Use correct type for limits [-Wconstant-conversion]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Mar 2017 22:36:43 +0100 |
parent | 7965:57f98394b830 |
child | 7969:1c6a07606309 |
line wrap: on
line diff
--- a/util-src/pposix.c Tue Mar 07 22:33:57 2017 +0100 +++ b/util-src/pposix.c Tue Mar 07 22:36:43 2017 +0100 @@ -542,7 +542,7 @@ return -1; } -unsigned long int arg_to_rlimit(lua_State *L, int idx, rlim_t current) { +rlim_t arg_to_rlimit(lua_State *L, int idx, rlim_t current) { switch(lua_type(L, idx)) { case LUA_TSTRING: