projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47f0d38
)
Fix clang issue on NotificationQueue::size
author
Beny Luo
<benyluo@fb.com>
Wed, 28 Oct 2015 00:41:18 +0000
(17:41 -0700)
committer
facebook-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
patch
|
blob
|
history
diff --git
a/folly/io/async/NotificationQueue.h
b/folly/io/async/NotificationQueue.h
index 9d76e431cd242b8163cdf596d2ce44379d2e4524..9eee132bc7b6b2063d1e2479eed59dd54b251b1f 100644
(file)
--- a/
folly/io/async/NotificationQueue.h
+++ b/
folly/io/async/NotificationQueue.h
@@
-419,7
+419,7
@@
class NotificationQueue {
return true;
}
-
in
t size() {
+
size_
t size() {
folly::SpinLockGuard g(spinlock_);
return queue_.size();
}