util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
authorKim Alvefur <zash@zash.se>
Sat, 10 Aug 2013 19:02:52 +0200
changeset 5777 c98f11bcd0ea
parent 5776 bd0ff8ae98a8
child 5778 8ea6fa8459e3
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
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)