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);
}
//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";
}