Skip to content

Commit ddb1dfd

Browse files
authored
Merge pull request #38 from adienes/fix-hash-method
Fix Base.hash to use only the two-arg method
2 parents 8349439 + 33e56c8 commit ddb1dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExprRules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function Base.:(==)(A::RuleNode, B::RuleNode)
296296
all(isequal(a,b) for (a,b) in zip(A.children, B.children))
297297
end
298298

299-
function Base.hash(node::RuleNode, h::UInt=zero(UInt))
299+
function Base.hash(node::RuleNode, h::UInt)
300300
retval = hash(node.ind, h)
301301
for child in node.children
302302
retval = hash(child, retval)

0 commit comments

Comments
 (0)