diff --git a/printf/include/printf_def.hpp b/printf/include/printf_def.hpp index 7ecb36a8..df8cd664 100644 --- a/printf/include/printf_def.hpp +++ b/printf/include/printf_def.hpp @@ -80,8 +80,8 @@ std::string vsprintf(const std::string& format, va_list va){ s += std::to_string(arg); } //Hexadecimal - else if(ch == 'h' || ch == 'x'){ - if(ch == 'h'){ + else if(ch == 'h' || ch == 'x' || ch == 'p'){ + if(ch == 'h' || ch == 'p'){ s += "0x"; }