X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;ds=sidebyside;f=lib%2FSub%2FNary.pm;h=707a2e627ee25228b9bc20432c6237014c661d3e;hb=097f9bafa7a1857d2798ab96fe54239c7464a97c;hp=427ee8c7eb7cfe3b021d58ae0887117bd1523bfc;hpb=cab48037c2f684dd60d1860bdc2efa3d10d3e7a3;p=perl%2Fmodules%2FSub-Nary.git diff --git a/lib/Sub/Nary.pm b/lib/Sub/Nary.pm index 427ee8c..707a2e6 100644 --- a/lib/Sub/Nary.pm +++ b/lib/Sub/Nary.pm @@ -416,13 +416,12 @@ sub pp_goto { sub pp_const { my ($self, $op) = @_; - if (class($op) eq 'SVOP' and (my $sv = $self->const_sv($op))) { - my $c = class($sv); - if ($c eq 'AV') { - return $sv->FILL + 1; - } elsif ($c eq 'HV') { - return 2 * $sv->FILL; - } + my $sv = $self->const_sv($op); + my $c = class($sv); + if ($c eq 'AV') { + return $sv->FILL + 1; + } elsif ($c eq 'HV') { + return 2 * $sv->FILL; } return 1;