Skip to content

Commit

Permalink
Fix compilation failure on OSX. (#3309)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed May 27, 2021
1 parent 4398f05 commit aec8d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/lib/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void nano::set_file_descriptor_limit (std::size_t limit)
return;
}

fd_limit.rlim_cur = std::min (limit, fd_limit.rlim_max);
fd_limit.rlim_cur = std::min (static_cast<rlim_t> (limit), fd_limit.rlim_max);
if (-1 == setrlimit (RLIMIT_NOFILE, &fd_limit))
{
std::cerr << "Unable to set limits for the number of open file descriptors: " << std::strerror (errno);
Expand Down

0 comments on commit aec8d80

Please sign in to comment.