Fix warnings

This commit is contained in:
Victor Zverovich
2019-08-11 06:53:03 -07:00
parent 4e99e09bb3
commit c1e97392be
5 changed files with 20 additions and 17 deletions

View File

@@ -1461,7 +1461,7 @@ TEST(FormatterTest, PrecisionRounding) {
// Trigger rounding error in Grisu by a carefully chosen number.
auto n = 3788512123356.985352;
char buffer[64];
sprintf(buffer, "%f", n);
safe_sprintf(buffer, "%f", n);
EXPECT_EQ(buffer, format("{:f}", n));
}