diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-12-17 12:00:51 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-12-17 12:00:51 +0000 |
commit | 4ea1d5509b412a58fa64cd5ebc1ea31750b05303 (patch) | |
tree | ee043ada9fa4d3b6fe11e6544be0dcff4d1b47c0 /sv.c | |
parent | 4cb1ec55c1e2db383f2cc2e1c02c9ba36503a201 (diff) | |
download | perl-4ea1d5509b412a58fa64cd5ebc1ea31750b05303.tar.gz |
The IV/UV choice can be made inside uiv_2buf rather than sv_2pv_flags.
p4raw-id: //depot/perl@26386
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -2494,10 +2494,7 @@ Perl_sv_2pv_flags(pTHX_ register SV *sv, STRLEN *lp, I32 flags) if (SvTYPE(sv) < SVt_PVIV) sv_upgrade(sv, SVt_PVIV); - if (isUIOK) - ptr = uiv_2buf(buf, 0, SvUVX(sv), 1, &ebuf); - else - ptr = uiv_2buf(buf, SvIVX(sv), 0, 0, &ebuf); + ptr = uiv_2buf(buf, SvIVX(sv), SvUVX(sv), isUIOK, &ebuf); /* inlined from sv_setpvn */ SvGROW_mutable(sv, (STRLEN)(ebuf - ptr + 1)); Move(ptr,SvPVX_mutable(sv),ebuf - ptr,char); |