]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
seq: fix check for rounding error/truncation
authorEd Maste <emaste@FreeBSD.org>
Mon, 19 Jun 2023 01:37:06 +0000 (21:37 -0400)
committerEd Maste <emaste@FreeBSD.org>
Mon, 19 Jun 2023 15:02:38 +0000 (11:02 -0400)
commite54db9a9ccd588f650a2e57bf9d1cbbafc0e12eb
tree6d7e1696f5e37a7236bb8423be72db055a0cafcd
parente77b2ea427c8aad502e0b56954745570e2fc8cd2
seq: fix check for rounding error/truncation

Based on OpenBSD 30f0fd29ba6c:
> We need to compare the printable version of the last value displayed,
> not the floating point representation.  Otherwise, we may print the
> last value twice.

PR: 271964
Reported by: Daniel Kolesa
Reviewed by: yuripv
Obtained from: OpenBSD
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40601
usr.bin/seq/seq.c