summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-08-08 16:02:55 +0000
committerschwarze <schwarze@openbsd.org>2014-08-08 16:02:55 +0000
commit7c776b600a048be404ca8331f99c5efc3fc211f0 (patch)
tree4cd0bd6c47ac6cbb2b2684fa8173d465ace15ffe /usr.bin/mandoc/man_validate.c
parentadd bochs and microsoft emulated vga (diff)
downloadwireguard-openbsd-7c776b600a048be404ca8331f99c5efc3fc211f0.tar.xz
wireguard-openbsd-7c776b600a048be404ca8331f99c5efc3fc211f0.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 'usr.bin/mandoc/man_validate.c')
0 files changed, 0 insertions, 0 deletions