diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-30 12:30:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-30 12:30:36 +0000 |
commit | 1c345c57d0409711abb1ac63246e87a2cb57326f (patch) | |
tree | f7f075ebf1e7cb725e0d9b9cdd61665b708b4bf4 /term_ascii.c | |
parent | 38931802fd8955ea9a7423f1a83b5578eaa9314e (diff) | |
download | mandoc-1c345c57d0409711abb1ac63246e87a2cb57326f.tar.gz |
Pushed normalisation of scaling units into term_hspan().
Diffstat (limited to 'term_ascii.c')
-rw-r--r-- | term_ascii.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/term_ascii.c b/term_ascii.c index fa19eb1b..5d36c9bc 100644 --- a/term_ascii.c +++ b/term_ascii.c @@ -30,7 +30,7 @@ #include "term.h" #include "main.h" -static size_t ascii_hspan(const struct termp *, +static double ascii_hspan(const struct termp *, const struct roffsu *); static size_t ascii_width(const struct termp *, char); static void ascii_advance(struct termp *, size_t); @@ -146,7 +146,7 @@ ascii_advance(struct termp *p, size_t len) /* ARGSUSED */ -static size_t +static double ascii_hspan(const struct termp *p, const struct roffsu *su) { double r; @@ -180,12 +180,6 @@ ascii_hspan(const struct termp *p, const struct roffsu *su) break; } - /* Explicitly disallow negative values. */ - - if (r < 0.0) - r = 0.0; - - return((size_t)/* LINTED */ - r); + return(r); } |