diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 19:38:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 19:38:29 +0000 |
commit | bf5632c30654b3560633b58019d13b37260ca137 (patch) | |
tree | c47680f784796924fc36b55ddd524d679fde1be2 /arch.in | |
parent | 7f0ffae23166177e2bf9143942da3b5d722ab016 (diff) | |
download | mandoc-bf5632c30654b3560633b58019d13b37260ca137.tar.gz mandoc-bf5632c30654b3560633b58019d13b37260ca137.tar.zst mandoc-bf5632c30654b3560633b58019d13b37260ca137.zip |
Fix floating point handling: When converting double to size_t,
properly round to the nearest M (=0.001m), which is the smallest
available unit.
This avoids weirdness like (size_t)(0.6 * 10.0) == 5
by instead calculating (size_t)(0.6 * 10.0 + 0.0005) == 6,
and so it fixes the indentation of the readline(3) manual.
Diffstat (limited to 'arch.in')
0 files changed, 0 insertions, 0 deletions