aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term_ps.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 /term_ps.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 'term_ps.c')
-rw-r--r--term_ps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/term_ps.c b/term_ps.c
index 12177acd..96edc6d3 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -1,4 +1,4 @@
-/* $Id: term_ps.c,v 1.61 2014/07/27 21:53:17 schwarze Exp $ */
+/* $Id: term_ps.c,v 1.62 2014/08/01 19:25:52 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -1123,13 +1123,13 @@ ps_hspan(const struct termp *p, const struct roffsu *su)
r = PNT2AFM(p, su->scale * 28.34);
break;
case SCALE_IN:
- r = PNT2AFM(p, su->scale * 72);
+ r = PNT2AFM(p, su->scale * 72.0);
break;
case SCALE_PC:
- r = PNT2AFM(p, su->scale * 12);
+ r = PNT2AFM(p, su->scale * 12.0);
break;
case SCALE_PT:
- r = PNT2AFM(p, su->scale * 100);
+ r = PNT2AFM(p, su->scale * 100.0);
break;
case SCALE_EM:
r = su->scale *