From 8281c7faafe4b6ad2b92436e133d21eb0c219ab4 Mon Sep 17 00:00:00 2001 From: Beny Luo Date: Tue, 27 Oct 2015 17:41:18 -0700 Subject: [PATCH] Fix clang issue on NotificationQueue::size 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/io/async/NotificationQueue.h b/folly/io/async/NotificationQueue.h index 9d76e431..9eee132b 100644 --- a/folly/io/async/NotificationQueue.h +++ b/folly/io/async/NotificationQueue.h @@ -419,7 +419,7 @@ class NotificationQueue { return true; } - int size() { + size_t size() { folly::SpinLockGuard g(spinlock_); return queue_.size(); } -- 2.34.1