Skip to content

Commit

Permalink
Fix hash(::MutableTangent) on 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Jan 29, 2024
1 parent 4a56d9c commit d9304c7
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 d9304c7

Please sign in to comment.