summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-14 10:52:05 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:08 +0100
commit5026560c306ae1d85252d843f6e0de5860ef9589 (patch)
treecb3daa20e929c10208b9efcfb72c77a82c865e66 /sv.c
parent7ce6ba0fb5b8748b33b04f1e400a9fddded56dba (diff)
downloadperl-5026560c306ae1d85252d843f6e0de5860ef9589.tar.gz
sv.c: simplify cpp conditionals
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index a3d33ae689..070a0c195e 100644
--- a/sv.c
+++ b/sv.c
@@ -11642,8 +11642,7 @@ S_format_hexfp(pTHX_ char * const buf, const STRLEN bufsize, const char c,
/* In this case there is an implicit bit,
* and therefore the exponent is shifted by one. */
exponent--;
-# else
-# ifdef NV_X86_80_BIT
+# elif defined(NV_X86_80_BIT)
if (subnormal) {
/* The subnormals of the x86-80 have a base exponent of -16382,
* (while the physical exponent bits are zero) but the frexp()
@@ -11657,7 +11656,6 @@ S_format_hexfp(pTHX_ char * const buf, const STRLEN bufsize, const char c,
} else {
exponent -= 4;
}
-# endif
/* TBD: other non-implicit-bit platforms than the x86-80. */
# endif
#endif