Commit 8281c7fa authored by Beny Luo's avatar Beny Luo Committed by facebook-github-bot-1

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
parent 47f0d384
......@@ -419,7 +419,7 @@ class NotificationQueue {
return true;
}
int size() {
size_t size() {
folly::SpinLockGuard g(spinlock_);
return queue_.size();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment