aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-01 19:38:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-01 19:38:29 +0000
commitbf5632c30654b3560633b58019d13b37260ca137 (patch)
treec47680f784796924fc36b55ddd524d679fde1be2 /man_validate.c
parent7f0ffae23166177e2bf9143942da3b5d722ab016 (diff)
downloadmandoc-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 'man_validate.c')
0 files changed, 0 insertions, 0 deletions