HomeFreeBSD

m4: Fix eval output width

Description

m4: Fix eval output width

According to POSIX, the optional third argument is the minimum number
of digits to print regardless of sign. We interpreted it as the minimum
width of the output including the sign. Additionally, the variable used
to hold this value was confusingly named “maxdigits”.

PR: 293214
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D55311

(cherry picked from commit 507c611aeac7ca9aed12353b1044bb21ab00afae)

Details

Provenance
desAuthored on Feb 17 2026, 2:01 PM
Reviewer
imp
Differential Revision
D55311: m4: Fix eval output width
Parents
rG5425bdae0970: bsdinstall: fix EFI boot entry creation
Branches
Unknown
Tags
Unknown