fix hexdump offset being off by one line
This commit is contained in:
parent
7634b3e35d
commit
0f1d72149e
2 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ def hexdump(data, indent=0, width=16, show_header=True, show_offsets=True, show_
|
||||||
output_io.write(" " * indent)
|
output_io.write(" " * indent)
|
||||||
|
|
||||||
if show_offsets:
|
if show_offsets:
|
||||||
output_io.write(format_str %(initial_offset + ptr))
|
output_io.write(format_str %(initial_offset + ptr - width))
|
||||||
|
|
||||||
if use_colors: output_io.write(text.render("<W>"))
|
if use_colors: output_io.write(text.render("<W>"))
|
||||||
output_io.write(" ".join(hex_bytes))
|
output_io.write(" ".join(hex_bytes))
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
major = 2 # VERSION_MAJOR_IDENTIFIER
|
major = 2 # VERSION_MAJOR_IDENTIFIER
|
||||||
minor = 1 # VERSION_MINOR_IDENTIFIER
|
minor = 1 # VERSION_MINOR_IDENTIFIER
|
||||||
# VERSION_LAST_MM 2.1
|
# VERSION_LAST_MM 2.1
|
||||||
patch = 5 # VERSION_PATCH_IDENTIFIER
|
patch = 6 # VERSION_PATCH_IDENTIFIER
|
||||||
str = "2.1.5" # VERSION_STRING_IDENTIFIER
|
str = "2.1.6" # VERSION_STRING_IDENTIFIER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue