mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 16:52:44 +01:00
ircd/fs.cc: Add cast to fix build with gcc-10
This commit is contained in:
parent
d8ff6172ef
commit
92c434e061
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ try
|
||||||
syscall(getrlimit, RLIMIT_NOFILE, &rlim[0]);
|
syscall(getrlimit, RLIMIT_NOFILE, &rlim[0]);
|
||||||
|
|
||||||
rlim[1] = rlim[0];
|
rlim[1] = rlim[0];
|
||||||
rlim[1].rlim_cur = std::max(rlim[1].rlim_cur, ulong(fs::rlimit_nofile));
|
rlim[1].rlim_cur = std::max(ulong(rlim[1].rlim_cur), ulong(fs::rlimit_nofile));
|
||||||
rlim[1].rlim_cur = std::min(rlim[1].rlim_cur, rlim[1].rlim_max);
|
rlim[1].rlim_cur = std::min(rlim[1].rlim_cur, rlim[1].rlim_max);
|
||||||
if(rlim[0].rlim_cur == rlim[1].rlim_cur)
|
if(rlim[0].rlim_cur == rlim[1].rlim_cur)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue