summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-10 13:01:17 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-10 13:01:17 +0000
commit35fff930bfb1b63678e6d04ddf853df09dda0ce6 (patch)
treee4e9d04d5ff6885ac7ebc98253887e8aafe9b3b4 /sv.c
parent9e5b023a336559f55602e1de2a7813a7d5d82eec (diff)
downloadperl-35fff930bfb1b63678e6d04ddf853df09dda0ce6.tar.gz
Further patch on #17163 for Tru64.
p4raw-id: //depot/perl@17164
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sv.c b/sv.c
index 58a7c0308f..71630180fa 100644
--- a/sv.c
+++ b/sv.c
@@ -7741,7 +7741,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
/* we need a long double target in case HAS_LONG_DOUBLE but
not USE_LONG_DOUBLE
*/
-#if defined(HAS_LONG_DOUBLE)
+#if defined(HAS_LONG_DOUBLE) && LONG_DOUBLESIZE > DOUBLESIZE
long double nv;
#else
NV nv;
@@ -8277,10 +8277,14 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
}
/* now we need (long double) if intsize == 'q', else (double) */
- nv = args
- ? intsize == 'q'
- ? va_arg(*args, long double)
- : va_arg(*args, double)
+ nv = args ?
+#if LONG_DOUBLESIZE > DOUBLESIZE
+ intsize == 'q' ?
+ va_arg(*args, long double) :
+ va_arg(*args, double)
+#else
+ va_arg(*args, double)
+#endif
: SvNVx(argsv);
need = 0;