summaryrefslogtreecommitdiffstats
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
commita4156c97a7eaea0360abdbc488f740cc4ad6f79f (patch)
tree6f31d124b977aa61430563f46633f2edac37a6be /term_ps.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 'term_ps.c')
-rw-r--r--term_ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/term_ps.c b/term_ps.c
index 0e47d6dc..f63f2ef5 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -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 *