Pointer printing

This commit is contained in:
Baptiste Wicht 2016-07-24 12:54:01 +02:00
parent 9b3a7f11c4
commit 189d7087a3

View File

@ -80,8 +80,8 @@ std::string vsprintf(const std::string& format, va_list va){
s += std::to_string(arg); s += std::to_string(arg);
} }
//Hexadecimal //Hexadecimal
else if(ch == 'h' || ch == 'x'){ else if(ch == 'h' || ch == 'x' || ch == 'p'){
if(ch == 'h'){ if(ch == 'h' || ch == 'p'){
s += "0x"; s += "0x";
} }