From 0e15bc145dccf88f8e20c614e75a69cd7b0945f4 Mon Sep 17 00:00:00 2001 From: Andy Dienes <51664769+adienes@users.noreply.github.com> Date: Wed, 8 Oct 2025 10:47:59 -0400 Subject: [PATCH] remove default zero(UInt) from hash seed --- src/base.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base.jl b/src/base.jl index b10a0d8c..b2bc516a 100644 --- a/src/base.jl +++ b/src/base.jl @@ -465,7 +465,7 @@ Compute a hash of a tree. This will compute a hash differently if nodes are shared in a tree. This is ignored if `break_sharing` is set to `Val(true)`. """ function hash( - tree::AbstractExpressionNode{T}, h::UInt=zero(UInt); break_sharing::Val{BS}=Val(false) + tree::AbstractExpressionNode{T}, h::UInt; break_sharing::Val{BS}=Val(false) ) where {T,BS} return tree_mapreduce( t -> leaf_hash(h, t),