fix: format char in an error message correctly

This commit is contained in:
ToruNiina 2019-02-19 02:46:48 +09:00
parent d8707d5867
commit 321364c7c2

View File

@ -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<int>(c);
return oss.str();
}