summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-04 02:56:34 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-04 02:56:34 +0000
commit07f14f5412398b0492274e922342ea9f308fea76 (patch)
treef896364806d9eb762c56d957f84798ac5d984d79 /doop.c
parent0f4592effc29e9b2deb638f6f7e6129ffa8326e3 (diff)
downloadperl-07f14f5412398b0492274e922342ea9f308fea76.tar.gz
s/sv_upgrade/SvUPGRADE/ a couple of places
p4raw-id: //depot/perl@2187
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index b88be261ad..2a032d90c5 100644
--- a/doop.c
+++ b/doop.c
@@ -653,8 +653,7 @@ do_join(register SV *sv, SV *del, register SV **mark, register SV **sp)
mark++;
len = (items > 0 ? (delimlen * (items - 1) ) : 0);
- if (SvTYPE(sv) < SVt_PV)
- sv_upgrade(sv, SVt_PV);
+ (void)SvUPGRADE(sv, SVt_PV);
if (SvLEN(sv) < len + items) { /* current length is way too short */
while (items-- > 0) {
if (*mark && !SvGMAGICAL(*mark) && SvOK(*mark)) {