mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
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:
parent
69b02aa85b
commit
cc25c52de4
2
lib/cpp/src/thrift/server/TServer.cpp
Normal file → Executable file
2
lib/cpp/src/thrift/server/TServer.cpp
Normal file → Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user