summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-08-08 16:00:23 +0000
committerschwarze <schwarze@openbsd.org>2014-08-08 16:00:23 +0000
commit53ab8734a5619407a3c3ee69c102dad00d7359df (patch)
tree03cadcce943b3f12d194de04514de5749d47c68e /usr.bin/mandoc/man_html.c
parentdemacrify: get rid of man_nmsg(), man_pmsg(), mdoc_nmsg(), mdoc_pmsg() (diff)
downloadwireguard-openbsd-53ab8734a5619407a3c3ee69c102dad00d7359df.tar.xz
wireguard-openbsd-53ab8734a5619407a3c3ee69c102dad00d7359df.zip
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 'usr.bin/mandoc/man_html.c')
-rw-r--r--usr.bin/mandoc/man_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c
index e14daa503a6..a7982edbfb1 100644
--- a/usr.bin/mandoc/man_html.c
+++ b/usr.bin/mandoc/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.54 2014/04/23 16:07:06 schwarze Exp $ */
+/* $Id: man_html.c,v 1.55 2014/08/08 16:00:23 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -384,7 +384,7 @@ man_br_pre(MAN_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);