From a46d7e76cb4f769d95d7595bf3bb89dd52a85386 Mon Sep 17 00:00:00 2001 From: Zachary P Christensen Date: Sat, 28 Dec 2024 18:11:09 -0500 Subject: [PATCH] Update src/little_set.jl Co-authored-by: Max Horn --- src/little_set.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/little_set.jl b/src/little_set.jl index 6631b9e..eb1067f 100644 --- a/src/little_set.jl +++ b/src/little_set.jl @@ -49,7 +49,7 @@ end # `FrozenLittleSet{T, Tuple{Vararg{T}}}`), these methods allow accessing data without exposing the # underlying `data` field and unintentionally specializing downstream code on the exact type # representation of a tuple. -if isdefined(Base, Symbol("@assume_effects")) +@static if isdefined(Base, Symbol("@assume_effects")) Base.@assume_effects :nothrow function unsafe_getstate(x::FrozenLittleSet, state::Int) getfield(getfield(x, :data), state) end