Hex 0xff does not appear to be visible; adjusting for it.

This commit is contained in:
Rob Greene 2018-06-03 12:22:06 -05:00
parent e4c9c60bfa
commit cd5d7ac142
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class HexDumper {
char ch = ' ';
if (i < data.length) {
byte b = data[i];
ch = (b >= ' ') ? (char)b : '.';
ch = (b >= ' ' && Byte.toUnsignedInt(b) != 0xff) ? (char)b : '.';
}
ps.printf("%c", ch);
}