=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.225 retrieving revision 1.227 diff -u -p -r1.225 -r1.227 --- mandoc/term.c 2014/08/01 19:25:52 1.225 +++ mandoc/term.c 2014/08/10 23:54:41 1.227 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.225 2014/08/01 19:25:52 schwarze Exp $ */ +/* $Id: term.c,v 1.227 2014/08/10 23:54:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -15,9 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -793,7 +791,7 @@ term_vspan(const struct termp *p, const struct roffsu if (r < 0.0) r = 0.0; - return((size_t)r); + return((size_t)(r + 0.0005)); } size_t @@ -804,5 +802,5 @@ term_hspan(const struct termp *p, const struct roffsu v = (*p->hspan)(p, su); if (v < 0.0) v = 0.0; - return((size_t)v); + return((size_t)(v + 0.0005)); }