Changeset

5777:c98f11bcd0ea

util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please)
author Kim Alvefur <zash@zash.se>
date Sat, 10 Aug 2013 19:02:52 +0200
parents 5776:bd0ff8ae98a8
children 5778:8ea6fa8459e3
files util-src/pposix.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)