Skip to content

Commit 53a2d80

Browse files
BigFloat/BigInt are not mutable (as arrays)
The default handling works for most numbers, but not for BigFloats because they are actually `mutable struct`, but don't act like a mutable array.
1 parent f1b5f65 commit 53a2d80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ArrayInterface.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ end
133133
ismutable(::Type{<:AbstractRange}) = false
134134
ismutable(::Type{<:AbstractDict}) = true
135135
ismutable(::Type{<:Base.ImmutableDict}) = false
136+
ismutable(::Type{BigFloat}) = false
137+
ismutable(::Type{BigInt}) = false
136138
function ismutable(::Type{T}) where {T}
137139
if parent_type(T) <: T
138140
return T.mutable

0 commit comments

Comments
 (0)