Skip to content

Commit

Permalink
Now fix 1.10 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jun 6, 2024
1 parent a3b0d93 commit 23d5b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StructUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ end
return unsafe_load(Ptr{UInt32}(atomicfields), 1 + s÷32) & (1 << (s%32)) != 0
end
else
const _isfieldatomic = isfieldatomic
const _isfieldatomic = Base.isfieldatomic
end
(f::NoArgFieldRef{T})(val::S) where {T,S} = setfield!(f.val, f.i, val, _isfieldatomic(T, f.i) ? :sequentially_consistent : :not_atomic)

Expand Down

0 comments on commit 23d5b97

Please sign in to comment.