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

Details

Provenance
desAuthored on Feb 17 2026, 2:01 PM
Reviewer
imp
Differential Revision
D55311: m4: Fix eval output width
Parents
rG62fba0054d9e: ee: add unicode support
Branches
Unknown
Tags
Unknown