]> Kevux Git Server - fll/commit
Bugfix: The byte_dump --first and --last are not always working as expected.
authorKevin Day <thekevinday@gmail.com>
Sat, 18 Jun 2022 23:50:38 +0000 (18:50 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 18 Jun 2022 23:56:19 +0000 (18:56 -0500)
commit4c8b3e891dbb1cb381a5aab6d0f8d3179d0b211c
treeda08a5b91083222db6ed9a2e6bb9f5e09632db20
parentfbe27f4356efbaedce4351f2a4120690060dc882
Bugfix: The byte_dump --first and --last are not always working as expected.

The problem is due to a calculation resulting in a negative value.
The code "width_utf == -1 ? 0 : width_utf - width_count" does not account for when width_count > width_utf.

Refactor the use of "characters" with "sequence" to reflect recent changes in terminology usage.
level_3/byte_dump/c/private-byte_dump.c
level_3/byte_dump/c/private-byte_dump.h