From 45c50a9f1a10250428a2d3ca5f2521856de27dea Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 6 May 2014 11:34:00 -0700 Subject: [PATCH] Fix warning. --- test/format-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/format-test.cc b/test/format-test.cc index 263c3d92..860da234 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1700,7 +1700,7 @@ TEST(FormatterTest, FileSinkWriteError) { fmt::FileSink fs(f.get()); std::size_t result = std::fwrite(" ", 1, 1, f.get()); int error_code = errno; - EXPECT_EQ(0, result); + EXPECT_EQ(0u, result); EXPECT_SYSTEM_ERROR( fs(Writer() << "test"), error_code, "cannot write to file"); }