Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rigtorp committed Sep 13, 2018
1 parent a78e6e0 commit f7946f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rigtorp/MPMCQueue.h
Expand Up @@ -71,7 +71,7 @@ template <typename T> class MPMCQueue {
"sharing between adjacent slots");
assert(reinterpret_cast<char *>(&tail_) -
reinterpret_cast<char *>(&head_) >=
kCacheLineSize &&
static_cast<ssize_t>(kCacheLineSize) &&
"head and tail must be a cache line apart to prevent false sharing");
}

Expand Down Expand Up @@ -218,4 +218,4 @@ template <typename T> class MPMCQueue {
alignas(kCacheLineSize) std::atomic<size_t> head_;
alignas(kCacheLineSize) std::atomic<size_t> tail_;
};
}
} // namespace rigtorp

0 comments on commit f7946f3

Please sign in to comment.