Commit d5360b8
committed
Fix conversion to hex of negative characters
Negative characters were previously converted with unneccessary leading
`f` characters. For example `-1` or `0xff` characters were previously
printed as `_ffffffff`. This commit uses the value of characters in the
-128 to -1 range remapped into the 128 to 255 range, so that `-1` prints
as `_ff`, without unneccessary padding with leading `f`s.1 parent f7c3a4b commit d5360b8
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| |||
0 commit comments