THRIFT-2024 TServer.cpp warns on 64-bit platforms about truncating an rlim_t into...
authorBen Craig <ben.craig@ni.com>
Thu, 20 Jun 2013 21:44:46 +0000 (23:44 +0200)
committerRoger Meier <roger@apache.org>
Thu, 20 Jun 2013 21:44:46 +0000 (23:44 +0200)
Signed-off-by: Roger Meier <roger@apache.org>
lib/cpp/src/thrift/server/TServer.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f6714a9..a3edd6d
@@ -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