You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/06/20 23:46:03 UTC
git commit: THRIFT-2024 TServer.cpp warns on 64-bit platforms about
truncating an rlim_t into an int
Updated Branches:
refs/heads/master 69b02aa85 -> cc25c52de
THRIFT-2024 TServer.cpp warns on 64-bit platforms about truncating an rlim_t into an int
Signed-off-by: Roger Meier <ro...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/cc25c52d
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/cc25c52d
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/cc25c52d
Branch: refs/heads/master
Commit: cc25c52de4fc1d9d856a759b283ff96a6c251c29
Parents: 69b02aa
Author: Ben Craig <be...@ni.com>
Authored: Thu Jun 20 23:44:46 2013 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Thu Jun 20 23:44:46 2013 +0200
----------------------------------------------------------------------
lib/cpp/src/thrift/server/TServer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/thrift/blob/cc25c52d/lib/cpp/src/thrift/server/TServer.cpp
----------------------------------------------------------------------
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 @@ 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