Fix a warning
This commit is contained in:
@@ -147,11 +147,10 @@ TEST(OStreamTest, WriteToOStreamMaxSize) {
|
||||
|
||||
testing::InSequence sequence;
|
||||
const char *data = FMT_NULL;
|
||||
std::size_t size = max_size;
|
||||
typedef std::make_unsigned<std::streamsize>::type ustreamsize;
|
||||
ustreamsize size = max_size;
|
||||
do {
|
||||
typedef std::make_unsigned<std::streamsize>::type ustreamsize;
|
||||
ustreamsize n = std::min<ustreamsize>(
|
||||
size, fmt::internal::to_unsigned(max_streamsize));
|
||||
auto n = std::min(size, fmt::internal::to_unsigned(max_streamsize));
|
||||
EXPECT_CALL(streambuf, xsputn(data, static_cast<std::streamsize>(n)))
|
||||
.WillOnce(testing::Return(max_streamsize));
|
||||
data += n;
|
||||
|
||||
Reference in New Issue
Block a user