{PATCH] Fix: Re: [PATCH] B::C, perlcc.PL, B.xs, B.pm, t/TEST, C.xs
authorMattia Barbon <mbarbon@dsi.unive.it>
Sat, 12 Jan 2002 20:37:32 +0000 (21:37 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 12 Jan 2002 18:38:54 +0000 (18:38 +0000)
Message-ID: <3C409E8C.16203.196C2D3@localhost>

p4raw-id: //depot/perl@14221

ext/B/B/Deparse.pm

index a6644fb..a0f0e78 100644 (file)
@@ -3627,7 +3627,10 @@ sub pp_split {
     my($op, $cx) = @_;
     my($kid, @exprs, $ary, $expr);
     $kid = $op->first;
-    if ($ {$kid->pmreplroot}) {
+    # under ithreads pmreplroot is an integer, not an SV
+    my $replroot = $kid->pmreplroot;
+    if ( ( ref($replroot) && $$replroot ) ||
+         ( !ref($replroot) && $replroot ) ) {
        $ary = $self->stash_variable('@', $self->gv_name($kid->pmreplroot));
     }
     for (; !null($kid); $kid = $kid->sibling) {