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>
diff --git a/lib/cpp/src/thrift/server/TServer.cpp b/lib/cpp/src/thrift/server/TServer.cpp
old mode 100644
new mode 100755
index f6714a9..a3edd6d
--- a/lib/cpp/src/thrift/server/TServer.cpp
+++ b/lib/cpp/src/thrift/server/TServer.cpp
@@ -43,7 +43,7 @@
max_fds /= 2;
}
- return fdmaxrl.rlim_cur;
+ return static_cast<int>(fdmaxrl.rlim_cur);
}
}}} // apache::thrift::server