Skip to content

Commit 2d721de

Browse files
author
Todd Rinaldo
committed
Fix precedence issue with PAD check in AV.pm
1 parent e4ee5d7 commit 2d721de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/B/C/OverLoad/B/AV.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ sub skip_backref_sv ($sv) {
7272
sub do_save ( $av, $fullname = undef, $cv = undef, $is_backref = 0 ) {
7373

7474
# Skip FLAGS check for PAD modules that use AV as parent since calling flags for those is meaningless
75-
unless ( ref $av =~ /^B::PAD(?:LIST|NAMELIST)$/ ) {
75+
unless ( ref($av) =~ /^B::PAD(?:LIST|NAMELIST)$/ ) {
7676
$av->FLAGS & 2048 and die sprintf( "In B::AV, unexpected SVf_ROK found in %s\n", ref $av );
7777
}
7878
$fullname ||= '';

0 commit comments

Comments
 (0)