From 321364c7c2cb635b0b9a94740950f16c541a91d0 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 19 Feb 2019 02:46:48 +0900 Subject: [PATCH] fix: format char in an error message correctly --- toml/combinator.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/combinator.hpp b/toml/combinator.hpp index ff528eb..e925b99 100644 --- a/toml/combinator.hpp +++ b/toml/combinator.hpp @@ -39,7 +39,7 @@ inline std::string show_char(const char c) else { std::ostringstream oss; - oss << std::hex << std::setfill('0') << std::setw(2) << "0x" + oss << "0x" << std::hex << std::setfill('0') << std::setw(2) << static_cast(c); return oss.str(); }