# HG changeset patch # User Kim Alvefur # Date 1376154172 -7200 # Node ID c98f11bcd0ea26ecd81baaff3817468a76aa5fee # Parent bd0ff8ae98a8b73cc508734ad843bbe1b1ecfba1 util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please) diff -r bd0ff8ae98a8 -r c98f11bcd0ea util-src/pposix.c --- a/util-src/pposix.c Fri Aug 09 17:48:21 2013 +0200 +++ b/util-src/pposix.c Sat Aug 10 19:02:52 2013 +0200 @@ -491,7 +491,7 @@ 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)