Skip to content

Commit

Permalink
Allow negative numbers when searching for parent
Browse files Browse the repository at this point in the history
A pointer when viewed as signed integer may look negative.
  • Loading branch information
andreas-schwab committed Oct 21, 2014
1 parent 4f13a7e commit d917282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/B/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ sub B::OP::_parent_impl {
return (
$op->sibling->_parent_impl( $target, "$cx$$op S " )
|| (
$cx =~ /^(?:\d+ S )*(?:\d+ N )*$/
$cx =~ /^(?:-?\d+ S )*(?:-?\d+ N )*$/
? $op->next->_parent_impl( $target, "$cx$$op N " )
: ()
)
Expand Down

0 comments on commit d917282

Please sign in to comment.