summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-01 19:25:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-01 19:25:52 +0000
commita4156c97a7eaea0360abdbc488f740cc4ad6f79f (patch)
tree6f31d124b977aa61430563f46633f2edac37a6be /mdoc_html.c
parent604bf7765cfa3f1a7d5702f8b54d326e7aaab3a4 (diff)
downloadmandoc-a4156c97a7eaea0360abdbc488f740cc4ad6f79f.tar.gz
Clarity with respect to floating point handling:
Write double constants as double rather than integer literals. Remove useless explicit (double) cast done at one place and nowhere else. No functional change.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 7130c376..43ff1d27 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -699,7 +699,7 @@ mdoc_nm_pre(MDOC_ARGS)
if (0 == len && meta->name)
len = html_strlen(meta->name);
- SCALE_HS_INIT(&su, (double)len);
+ SCALE_HS_INIT(&su, len);
bufinit(h);
bufcat_su(h, "width", &su);
PAIR_STYLE_INIT(&tag, h);
@@ -1565,7 +1565,7 @@ mdoc_sp_pre(MDOC_ARGS)
if ( ! a2roffsu(n->string, &su, SCALE_VS))
SCALE_VS_INIT(&su, atoi(n->string));
} else
- su.scale = 0;
+ su.scale = 0.0;
bufinit(h);
bufcat_su(h, "height", &su);