Thrift:1488 - src/concurrency/Thread.h:91:58: error: invalid conversion from 'pthread...
authorJake Farrell <jfarrell@apache.org>
Tue, 17 Jan 2012 14:28:05 +0000 (14:28 +0000)
committerJake Farrell <jfarrell@apache.org>
Tue, 17 Jan 2012 14:28:05 +0000 (14:28 +0000)
Client: cpp
Patch: Jake Farrell

Added cast to Thread.h get_current()

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1232424 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/concurrency/Thread.h

index 654778c..dc3c748 100755 (executable)
@@ -88,7 +88,7 @@ class Thread {
 #else
   typedef uint64_t id_t;
   static inline bool is_current(pthread_t t) { return pthread_equal(pthread_self(), t); }
-  static inline id_t get_current() { return pthread_self(); }
+  static inline id_t get_current() { return (Thread::id_t)pthread_self(); }
 #endif
 
   virtual ~Thread() {};