diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-22 21:16:44 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-10-22 21:16:44 +0000 |
commit | 6f9bb7fd34a6047f919bd09bd87e990f064e148c (patch) | |
tree | e97725f1e2b49be658594d468ab9b9d8b4a85ff2 | |
parent | 9c51cf4c9382ec7949cbce7b5d3babf8d5581e4d (diff) | |
download | perl-6f9bb7fd34a6047f919bd09bd87e990f064e148c.tar.gz |
sv_vcatpvfn() bug: fell through to assuming intsize of 'q' for
C<"%ld", long_val>
p4raw-id: //depot/perl@4421
-rw-r--r-- | sv.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -5139,6 +5139,13 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV /* SIZE */ switch (*q) { +#ifdef HAS_QUAD + case 'L': /* Ld */ + case 'q': /* qd */ + intsize = 'q'; + q++; + break; +#endif case 'l': #ifdef HAS_QUAD if (*(q + 1) == 'l') { /* lld */ @@ -5146,12 +5153,8 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV q += 2; break; } - case 'L': /* Ld */ - case 'q': /* qd */ - intsize = 'q'; - q++; - break; #endif + /* FALL THROUGH */ case 'h': /* FALL THROUGH */ case 'V': |