You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base.hash behavior for enum types was changed very recently (JuliaLang/julia@22551a2, present in current Julia nightly), affecting enum types generated with EnumX.jl. In particular, computing hash values for EnumX-generated enum types now results in a stack overflow:
Previous behavior:
julia>@enumx Fruits Apple Banana
julia>hash(Fruits.Apple)
0xfab008b31fa7e45a
New behavior:
julia>@enumx Fruits Apple Banana
julia>hash(Fruits.Apple)
ERROR: StackOverflowError:
Stacktrace:
[1] hash(x::Main.Fruits.T, h::UInt64)
@ Base.Enums ./Enums.jl:31
[2] _enum_hash(x::Main.Fruits.T, h::UInt64)
@ Base.Enums ./Enums.jl:30--- the last 2 lines are repeated 39990 more times ---
[79983] hash(x::Main.Fruits.T, h::UInt64)
@ Base.Enums ./Enums.jl:31
The text was updated successfully, but these errors were encountered:
Base.hash
behavior for enum types was changed very recently (JuliaLang/julia@22551a2, present in current Julia nightly), affecting enum types generated with EnumX.jl. In particular, computing hash values for EnumX-generated enum types now results in a stack overflow:Previous behavior:
New behavior:
The text was updated successfully, but these errors were encountered: