Skip to content

Commit

Permalink
changing MatchFailure#hash implementation so that it doesn't overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkellis committed Nov 19, 2019
1 parent 90bbb33 commit e1a2719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matcher.cr
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module Arborist
end

def hash
pos.hash + expr.hash + active_rule_name.hash
pos.hash ^ expr.hash ^ active_rule_name.hash
end

def ==(other)
Expand Down

0 comments on commit e1a2719

Please sign in to comment.