diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-29 17:31:01 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-29 17:31:01 +0000 |
commit | df7eb254219cb3c3f8ccbd4843affe6422111cd4 (patch) | |
tree | 4e941cdb5aa9fadcd8723e9f957214ba4b81eb9e | |
parent | b347df820803cfaa55e1ef645ee3797402b58e10 (diff) | |
download | perl-df7eb254219cb3c3f8ccbd4843affe6422111cd4.tar.gz |
Replace the body of the rarely used sv_setpviv_mg with a call to
sv_setpviv followed by SvSETMAGIC.
p4raw-id: //depot/perl@25886
-rw-r--r-- | sv.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -8135,11 +8135,7 @@ Like C<sv_setpviv>, but also handles 'set' magic. void Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv) { - char buf[TYPE_CHARS(UV)]; - char *ebuf; - char * const ptr = uiv_2buf(buf, iv, 0, 0, &ebuf); - - sv_setpvn(sv, ptr, ebuf - ptr); + sv_setpviv(sv, iv); SvSETMAGIC(sv); } |