We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73ab6cd commit 94a08d8Copy full SHA for 94a08d8
1 file changed
include/dynlibutils/memaddr.hpp
@@ -70,7 +70,7 @@ inline std::string MemToHexString(T val)
70
71
inline char MemToHumanChar(std::uint8_t byte)
72
{
73
- return ('~' <= byte && byte <= ' ') ? static_cast<char>(byte) : '.';
+ return (' ' <= byte && byte <= '~') ? static_cast<char>(byte) : '.';
74
}
75
76
template<std::size_t BYTES_PER_LINE>
@@ -210,7 +210,7 @@ class CMemory
210
for (std::size_t i = 0; i < pad; ++i)
211
sLine += " ";
212
213
- sLine += " |" + sFormated + "|\n";
+ sLine += (pad ? "|" : " |") + sFormated + "|\n";
214
funcOutput(sLine);
215
nOutputCount++;
216
0 commit comments