THRIFT-2024 TServer.cpp warns on 64-bit platforms about truncating an rlim_t into an int

Signed-off-by: Roger Meier <roger@apache.org>
This commit is contained in:
Ben Craig 2013-06-20 23:44:46 +02:00 committed by Roger Meier
parent 69b02aa85b
commit cc25c52de4

2
lib/cpp/src/thrift/server/TServer.cpp Normal file → Executable file
View File

@ -43,7 +43,7 @@ int increase_max_fds(int max_fds=(1<<24)) {
max_fds /= 2;
}
return fdmaxrl.rlim_cur;
return static_cast<int>(fdmaxrl.rlim_cur);
}
}}} // apache::thrift::server