This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix bug in B::CC::pp_sassign()
authorVishal Bhatia <vishal@deja.com>
Sun, 11 Oct 1998 18:41:38 +0000 (11:41 -0700)
committerGurusamy Sarathy <gsar@cpan.org>
Sat, 17 Oct 1998 02:27:29 +0000 (02:27 +0000)
Message-ID: <19981012014139.19614.qmail@hotmail.com>
Subject: B::CC problems with pp_sassign routine

p4raw-id: //depot/perl@1993

ext/B/B/CC.pm

index 9991d8e..7194819 100644 (file)
@@ -878,7 +878,7 @@ sub pp_sassign {
            }
            runtime("SvSETMAGIC(TOPs);");
        } else {
-           my $dst = pop @stack;
+           my $dst = $stack[-1];
            my $type = $dst->{type};
            runtime("sv = POPs;");
            runtime("MAYBE_TAINT_SASSIGN_SRC(sv);");