=================================================================== RCS file: /cvs/mandoc/term_ps.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -p -r1.19 -r1.20 --- mandoc/term_ps.c 2010/06/30 12:27:55 1.19 +++ mandoc/term_ps.c 2010/06/30 12:30:36 1.20 @@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.19 2010/06/30 12:27:55 kristaps Exp $ */ +/* $Id: term_ps.c,v 1.20 2010/06/30 12:30:36 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -359,7 +359,7 @@ static const struct font fonts[TERMFONT__MAX] = { } while (/* CONSTCOND */ 0) -static size_t ps_hspan(const struct termp *, +static double ps_hspan(const struct termp *, const struct roffsu *); static size_t ps_width(const struct termp *, char); static void ps_advance(struct termp *, size_t); @@ -828,7 +828,7 @@ ps_width(const struct termp *p, char c) } -static size_t +static double ps_hspan(const struct termp *p, const struct roffsu *su) { double r; @@ -871,12 +871,6 @@ ps_hspan(const struct termp *p, const struct roffsu *s break; } - /* Explicitly disallow negative values. */ - - if (r < 0.0) - r = 0.0; - - return((size_t)/* LINTED */ - r); + return(r); }