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. --- out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'out.c') diff --git a/out.c b/out.c index 9c4e4c94..0e5a63c0 100644 --- a/out.c +++ b/out.c @@ -1,4 +1,4 @@ -/* $Id: out.c,v 1.48 2014/04/20 16:46:05 schwarze Exp $ */ +/* $Id: out.c,v 1.49 2014/08/01 19:25:52 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -128,8 +128,8 @@ a2roffsu(const char *src, struct roffsu *dst, enum roffscale def) } /* FIXME: do this in the caller. */ - if ((dst->scale = atof(buf)) < 0) - dst->scale = 0; + if ((dst->scale = atof(buf)) < 0.0) + dst->scale = 0.0; dst->unit = unit; return(1); } -- cgit v1.2.3