mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: format char in an error message correctly
This commit is contained in:
@@ -39,7 +39,7 @@ inline std::string show_char(const char c)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
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);
|
<< static_cast<int>(c);
|
||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user