commit a6cc6d1e10a639a2e41c31bdd3dcdca87086ccf6
Author: Aaron LI <[email protected]>
Date: Tue Mar 16 17:36:26 2021 +0800
od(1): Fix alignment issue in long double (-t fL) output
Long double has one more digit in the exponential besides the longer
fractional digits. So the output width should be LDBL_DIG+9. While
there, improve the width calculation for all float types.
In addition, minor style tweaks.
Summary of changes:
usr.bin/hexdump/display.c | 4 ++--
usr.bin/hexdump/odsyntax.c | 15 ++++++++++-----
usr.bin/hexdump/parse.c | 6 ++++--
3 files changed, 16 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a6cc6d1e10a639a2e41c31bdd3dcdca87086ccf6
--
DragonFly BSD source repository