Skip to content

Commit

Permalink
Merge pull request #659 from JuliaDiff/ox/32
Browse files Browse the repository at this point in the history
Fix hash(::MutableTangent) on 32 bit
  • Loading branch information
oxinabox authored Jan 29, 2024
2 parents 4a56d9c + d9304c7 commit 935d625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tangent_types/structural_tangent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ function Base.setproperty!(tangent::MutableTangent, idx::Int, x)
return getfield(ref_backing(tangent), idx)[] = x
end # break ambig

Base.hash(tangent::MutableTangent, h::UInt64) = hash(backing(tangent), h)
Base.hash(tangent::MutableTangent, h::UInt) = hash(backing(tangent), h)
function Base.:(==)(t1::MutableTangent{T1}, t2::MutableTangent{T2}) where {T1, T2}
typeintersect(T1, T2) == Union{} && return false
backing(t1)==backing(t2)
Expand Down

0 comments on commit 935d625

Please sign in to comment.