From 7f0ffae23166177e2bf9143942da3b5d722ab016 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 1 Aug 2014 19:25:52 +0000 Subject: 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. --- term_ps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'term_ps.c') 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 * Copyright (c) 2014 Ingo Schwarze @@ -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 * -- cgit v1.2.3