We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hash
Sym
1 parent 62403b9 commit 4be9924Copy full SHA for 4be9924
src/types.jl
@@ -279,10 +279,10 @@ const ADD_SALT = 0xaddaddaddaddadda % UInt
279
const SUB_SALT = 0xaaaaaaaaaaaaaaaa % UInt
280
const DIV_SALT = 0x334b218e73bbba53 % UInt
281
const POW_SALT = 0x2b55b97a6efb080c % UInt
282
-function Base.hash(s::BasicSymbolic, salt::UInt)::UInt
+function Base.hash(s::BasicSymbolic{T}, salt::UInt)::UInt where {T}
283
E = exprtype(s)
284
if E === SYM
285
- hash(nameof(s), salt ⊻ SYM_SALT)
+ hash(T, hash(nameof(s), salt ⊻ SYM_SALT))
286
elseif E === ADD || E === MUL
287
!iszero(salt) && return hash(hash(s, zero(UInt)), salt)
288
h = s.hash[]
0 commit comments