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 2014/07/08 23:05:12 UTC

git commit: THRIFT-2614 - C++ Library - TNonblockingServer.cpp MSVC warning removed

Repository: thrift
Updated Branches:
  refs/heads/master 6f86f9ac5 -> b7af66e18


THRIFT-2614 - C++ Library - TNonblockingServer.cpp MSVC warning removed

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/b7af66e1
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/b7af66e1
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/b7af66e1

Branch: refs/heads/master
Commit: b7af66e1899fcaf66166ef7d5a8ab9fca15ee033
Parents: 6f86f9a
Author: Konrad Grochowski <hc...@minions.org.pl>
Authored: Tue Jul 8 19:22:44 2014 +0200
Committer: Roger Meier <ro...@apache.org>
Committed: Tue Jul 8 23:03:08 2014 +0200

----------------------------------------------------------------------
 lib/cpp/src/thrift/server/TNonblockingServer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/b7af66e1/lib/cpp/src/thrift/server/TNonblockingServer.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/server/TNonblockingServer.cpp b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
index 7bd42e2..86a96c6 100644
--- a/lib/cpp/src/thrift/server/TNonblockingServer.cpp
+++ b/lib/cpp/src/thrift/server/TNonblockingServer.cpp
@@ -265,7 +265,7 @@ class TNonblockingServer::TConnection {
    * @param v void* callback arg where we placed TConnection's "this".
    */
   static void eventHandler(evutil_socket_t fd, short /* which */, void* v) {
-    assert(fd == ((TConnection*)v)->getTSocket()->getSocketFD());
+    assert(fd == static_cast<evutil_socket_t>(((TConnection*)v)->getTSocket()->getSocketFD()));
     ((TConnection*)v)->workSocket();
   }