[#] http://marc.info/?l=openbsd-cvs&m=140751379018785&w=2
openbsd-cvs(obsdave,2) — All
2014-08-08 20:55:18


Module name: src
Changes by: schwarze@cvs.openbsd.org 2014/08/08 10:02:55

Modified files:
usr.bin/mandoc : term.c

Log message:
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.