Skip to content

Commit

Permalink
Differentiate equivalent coeff with different numeric types
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed Nov 27, 2024
1 parent 680d148 commit e5fb7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function hash2(s::BasicSymbolic{T}, salt::UInt)::UInt where {T}
hv ⊻= hash2(k, hash(v))
end
h = hash(hv, salt)
h = hash(hashoffset, hash(s.coeff, h))
h = hash(hashoffset, hash2(s.coeff, h))
elseif E === DIV
h = hash2(s.num, hash2(s.den, salt DIV_SALT))
elseif E === POW
Expand Down

0 comments on commit e5fb7ce

Please sign in to comment.