summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-03 20:12:10 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-03 20:12:10 +0000
commitc773ee7aa487a3c7cb9ca0302a31018840790531 (patch)
tree6d36ab5b358a387a10f6989bc00046362ce7fb37 /mathoms.c
parentcdd8118e49c05b43bd2785d9a269d538a4e8fe8c (diff)
downloadperl-c773ee7aa487a3c7cb9ca0302a31018840790531.tar.gz
Silence a warning about "statement not reached" from the Sun C compiler.
It was accurate - the conditional code used to give 2 return statements. p4raw-id: //depot/perl@27071
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mathoms.c b/mathoms.c
index 29dbc571d6..3f541f60ea 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -435,10 +435,11 @@ Perl_printf_nocontext(const char *format, ...)
NV
Perl_huge(void)
{
-# if defined(USE_LONG_DOUBLE) && defined(HUGE_VALL)
+# if defined(USE_LONG_DOUBLE) && defined(HUGE_VALL)
return HUGE_VALL;
-# endif
+# else
return HUGE_VAL;
+# endif
}
#endif