This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A further patch from Spider Boardman for long doubleness.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 1 Mar 2000 18:11:09 +0000 (18:11 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 1 Mar 2000 18:11:09 +0000 (18:11 +0000)
p4raw-id: //depot/cfgperl@5407

sv.c

diff --git a/sv.c b/sv.c
index 7bb1fdd..2aa08c0 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -6230,8 +6230,9 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
            *--eptr = c;
 #ifdef USE_LONG_DOUBLE
            {
-               char* p = PERL_PRIfldbl + sizeof(PERL_PRIfldbl) - 3;
-               while (p >= PERL_PRIfldbl) { *--eptr = *p--; }
+               char const my_prifldbl[] = PERL_PRIfldbl;
+               char const *p = my_prifldbl + sizeof my_prifldbl - 3;
+               while (p >= my_prifldbl) { *--eptr = *p--; }
            }
 #endif
            if (has_precis) {