summaryrefslogtreecommitdiffstats
path: root/out.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 /out.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 'out.c')
-rw-r--r--out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/out.c b/out.c
index 6ae02fb5..9bed1371 100644
--- a/out.c
+++ b/out.c
@@ -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);
}