Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Anders Wäänänen
arc
Commits
cfbf7837
Commit
cfbf7837
authored
May 27, 2017
by
Mattias Ellert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation warning: overflow in implicit constant conversion
parent
e3316a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/hed/libs/common/Run_unix.cpp
src/hed/libs/common/Run_unix.cpp
+1
-1
No files found.
src/hed/libs/common/Run_unix.cpp
View file @
cfbf7837
...
...
@@ -505,7 +505,7 @@ namespace Arc {
}
// close all handles inherited from parent
int
max_files
=
RLIM_INFINITY
;
u
int
64_t
max_files
=
RLIM_INFINITY
;
struct
rlimit
lim
;
if
(
getrlimit
(
RLIMIT_NOFILE
,
&
lim
)
==
0
)
{
max_files
=
lim
.
rlim_cur
;
};
if
(
max_files
==
RLIM_INFINITY
)
max_files
=
4096
;
// some safe value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment