git: od(1): Fix alignment issue in long double (-t fL) output

Aaron LI aly at crater.dragonflybsd.org
Tue Mar 16 06:23:45 PDT 2021


commit 938b9b20f864712c95a17b38b3f9e131d401c3a7
Author: Aaron LI <aly at aaronly.me>
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/938b9b20f864712c95a17b38b3f9e131d401c3a7


-- 
DragonFly BSD source repository


More information about the Commits mailing list