diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 19:25:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 19:25:52 +0000 |
commit | a4156c97a7eaea0360abdbc488f740cc4ad6f79f (patch) | |
tree | 6f31d124b977aa61430563f46633f2edac37a6be /term_ps.c | |
parent | 604bf7765cfa3f1a7d5702f8b54d326e7aaab3a4 (diff) | |
download | mandoc-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 * |