Skip to content

Commit

Permalink
fix preference loading (JuliaLang#41294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo authored and johanmon committed Jul 5, 2021
1 parent 5832910 commit c452b7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1765,9 +1765,9 @@ function get_preferences_hash(uuid::Union{UUID, Nothing}, prefs_list::Vector{Str

# Walk through each name that's called out as a compile-time preference
for name in prefs_list
prefs_name = get(prefs, name, nothing)::Union{String, Nothing}
if prefs_name !== nothing
h = hash(prefs_name, h)
prefs_value = get(prefs, name, nothing)
if prefs_value !== nothing
h = hash(prefs_value, h)
end
end
# We always return a `UInt64` so that our serialization format is stable
Expand Down

0 comments on commit c452b7c

Please sign in to comment.