Commit cfbf7837 authored by Mattias Ellert's avatar Mattias Ellert
Browse files

Fix compilation warning: overflow in implicit constant conversion

parent e3316a62
...@@ -505,7 +505,7 @@ namespace Arc { ...@@ -505,7 +505,7 @@ namespace Arc {
} }
// close all handles inherited from parent // close all handles inherited from parent
int max_files = RLIM_INFINITY; uint64_t max_files = RLIM_INFINITY;
struct rlimit lim; struct rlimit lim;
if(getrlimit(RLIMIT_NOFILE,&lim) == 0) { max_files=lim.rlim_cur; }; if(getrlimit(RLIMIT_NOFILE,&lim) == 0) { max_files=lim.rlim_cur; };
if(max_files == RLIM_INFINITY) max_files=4096; // some safe value if(max_files == RLIM_INFINITY) max_files=4096; // some safe value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment