diff --git a/src/json.hpp b/src/json.hpp index 750ae51a..1fa90456 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -2674,7 +2674,7 @@ scan_number_done: { yytext.clear(); token_string.clear(); - token_string.push_back(static_cast(current)); + token_string.push_back(std::char_traits::to_char_type(current)); } /*