/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* in any queue) are also counted.
*/
ssize_t sizeGuess() const noexcept {
- return (std::get<0>(stages_).writeCount() * kAmplification -
- std::get<sizeof...(Stages)>(stages_).readCount());
+ return ssize_t(
+ std::get<0>(stages_).writeCount() * kAmplification -
+ std::get<sizeof...(Stages)>(stages_).readCount());
}
private:
StageTuple stages_;
};
-
-} // namespaces
+} // namespace folly