seq: fix check for rounding error/truncation
authormillert <millert@openbsd.org>
Mon, 12 Jun 2023 20:15:06 +0000 (20:15 +0000)
committermillert <millert@openbsd.org>
Mon, 12 Jun 2023 20:15:06 +0000 (20:15 +0000)
commit30f0fd29ba6c5cb385908d42cdff89a10af6dfde
tree0a1ba2d8d74768c78d07c0e729a45e12fedc9eff
parentb3614c081792e3c13aa9f68aefa1db8e0654746d
seq: fix check for rounding error/truncation
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.  OK deraadt@
usr.bin/seq/seq.c