Skip to content

Commit e1b02ea

Browse files
Merge pull request #150 from JuliaArrays/ChrisRackauckas-patch-1
BigFloat/BigInt are not mutable (as arrays)
2 parents f1b5f65 + 53a2d80 commit e1b02ea

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)