Fix clang issue on NotificationQueue::size
authorBeny Luo <benyluo@fb.com>
Wed, 28 Oct 2015 00:41:18 +0000 (17:41 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Wed, 28 Oct 2015 01:20:22 +0000 (18:20 -0700)
Summary: The implicit conversion loses integer precision: 'size_type' (aka 'unsigned
long') to 'int'.

Reviewed By: mzlee

Differential Revision: D2585883

fb-gh-sync-id: 1fc7c84b66c8f19cc36b798dd198730764e19b28

folly/io/async/NotificationQueue.h

index 9d76e431cd242b8163cdf596d2ce44379d2e4524..9eee132bc7b6b2063d1e2479eed59dd54b251b1f 100644 (file)
@@ -419,7 +419,7 @@ class NotificationQueue {
     return true;
   }
 
-  int size() {
+  size_t size() {
     folly::SpinLockGuard g(spinlock_);
     return queue_.size();
   }