From e350fb8478bc304f4ca1ea1e29829b6d37066cb6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 10 Aug 2013 19:02:52 +0200 Subject: util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please) --- util-src/pposix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-src/pposix.c b/util-src/pposix.c index c0d1f5a2..2e1de971 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -491,7 +491,7 @@ int string2resource(const char *s) { return -1; } -int arg_to_rlimit(lua_State* L, int idx, rlim_t current) { +unsigned long int arg_to_rlimit(lua_State* L, int idx, rlim_t current) { switch(lua_type(L, idx)) { case LUA_TSTRING: if(strcmp(lua_tostring(L, idx), "unlimited") == 0) -- cgit v1.2.3