"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: Shrink some formatted output fields down to size
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Sat, 12 Feb 2022 19:27:54 +0100

Download raw body.

Thread
On Sat, Feb 12, 2022 at 03:18:27PM +0100, Christian Weisgerber wrote:
> shrink the width of formatted output fields to their expected size
>  
> Replace FMT_SCALED_STRSIZE with (FMT_SCALED_STRSIZE - 2) as field
> width when formatting output for printing.  FMT_SCALED_STRSIZE
> includes space for a nul byte and a minus sign.  Output values
> are expected to be always positive here.
> 
> OK?

Sure, ok.

During a quick test (packing got.git) I did not observe any difference
in output. Are values of specific dimensions required to see a difference?