=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term.c,v retrieving revision 1.106 retrieving revision 1.107 diff -u -r1.106 -r1.107 --- src/usr.bin/mandoc/term.c 2015/04/02 23:47:43 1.106 +++ src/usr.bin/mandoc/term.c 2015/04/04 17:46:58 1.107 @@ -1,4 +1,4 @@ -/* $OpenBSD: term.c,v 1.106 2015/04/02 23:47:43 schwarze Exp $ */ +/* $OpenBSD: term.c,v 1.107 2015/04/04 17:46:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -617,8 +617,7 @@ term_setwidth(struct termp *p, const char *wstr) { struct roffsu su; - size_t width; - int iop; + int iop, width; iop = 0; width = 0; @@ -829,11 +828,12 @@ return(ri < 66 ? ri : 1); } +/* + * Convert a scaling width to basic units, rounding down. + */ int term_hspan(const struct termp *p, const struct roffsu *su) { - double v; - v = (*p->hspan)(p, su); - return(v > 0.0 ? v + 0.0005 : v - 0.0005); + return((*p->hspan)(p, su)); }