summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/term.c b/term.c
index 3776f250..71fea0f1 100644
--- a/term.c
+++ b/term.c
@@ -692,6 +692,11 @@ term_vspan(const struct termp *p, const struct roffsu *su)
size_t
term_hspan(const struct termp *p, const struct roffsu *su)
{
+ double v;
- return((*p->hspan)(p, su));
+ v = ((*p->hspan)(p, su));
+ if (v < 0.0)
+ v = 0.0;
+ return((size_t) /* LINTED */
+ v);
}