aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_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
commit7f0ffae23166177e2bf9143942da3b5d722ab016 (patch)
treee58565ff4c3122d57c3feda421dd653b3cd486f6 /man_html.c
parentf0a1f96fe7ebbe75d5432cd491f6ea60095c5304 (diff)
downloadmandoc-7f0ffae23166177e2bf9143942da3b5d722ab016.tar.gz
mandoc-7f0ffae23166177e2bf9143942da3b5d722ab016.tar.zst
mandoc-7f0ffae23166177e2bf9143942da3b5d722ab016.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 'man_html.c')
-rw-r--r--man_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index 5df9e469..9689cc26 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.95 2014/04/23 16:08:33 schwarze Exp $ */
+/* $Id: man_html.c,v 1.96 2014/08/01 19:25:52 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -388,7 +388,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);