From 2f4f3efbf0c8e9a1a193dce708b79652e8116feb Mon Sep 17 00:00:00 2001 From: khoitd1997 Date: Sun, 9 Jun 2019 12:00:28 -0700 Subject: [PATCH] fix sign-compare warning --- toml/combinator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/combinator.hpp b/toml/combinator.hpp index 9f9fa9c..1c6ce25 100644 --- a/toml/combinator.hpp +++ b/toml/combinator.hpp @@ -45,7 +45,7 @@ inline std::string show_char(const char c) buf.fill('\0'); const auto r = std::snprintf( buf.data(), buf.size(), "0x%02x", static_cast(c) & 0xFF); - assert(r == buf.size() - 1); + assert(r == static_cast(buf.size()) - 1); return std::string(buf.data()); } }