Skip to content

Commit 1fd5768

Browse files
authored
Fix some invalidation. (#542)
Base has defined `hash(x) = hash(x, zero(UInt))`
1 parent f432a7b commit 1fd5768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Interpolations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ maybe_clamp(itp, xs) = maybe_clamp(BoundsCheckStyle(itp), itp, xs)
428428
maybe_clamp(::NeedsCheck, itp, xs) = map(clamp, xs, lbounds(itp), ubounds(itp))
429429
maybe_clamp(::CheckWillPass, itp, xs) = xs
430430

431-
Base.hash(x::AbstractInterpolation, h::UInt = zero(UInt)) = Base.hash_uint(3h - objectid(x))
432-
Base.hash(x::AbstractExtrapolation, h::UInt = zero(UInt)) = Base.hash_uint(3h - objectid(x))
431+
Base.hash(x::AbstractInterpolation, h::UInt) = Base.hash_uint(3h - objectid(x))
432+
Base.hash(x::AbstractExtrapolation, h::UInt) = Base.hash_uint(3h - objectid(x))
433433

434434
include("nointerp/nointerp.jl")
435435
include("b-splines/b-splines.jl")

0 commit comments

Comments
 (0)