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 /out.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 'out.c')
-rw-r--r-- | out.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |