diff --git a/Project.toml b/Project.toml index 4da12ee..8511476 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "d4e7598c-6ff7-5b24-8fdc-8d1c0c33c9cf" keywords = ["BSON", "serialization"] license = "MIT" desc = "Mostly compatible Fork of BSON package with focus on composite type performance" -version = "0.6.1" +version = "0.6.2" [deps] Mmap = "a63ad114-7e13-5084-954f-fe012c677804" diff --git a/src/intermediate.jl b/src/intermediate.jl index 1c1f070..dabd4a1 100644 --- a/src/intermediate.jl +++ b/src/intermediate.jl @@ -55,7 +55,7 @@ end mutable struct TaggedStruct <: TaggedStructType ttype::TaggedStructType - data::BSONArray + data::Union{BSONArray, Vector{UInt8}} end mutable struct TaggedArray <: Tagged @@ -104,7 +104,7 @@ end function applychildren!(f::Function, ts::TaggedStruct)::TaggedStruct ts.ttype = f(ts.ttype) if ts.data != nothing - ts.data = f(ts.data::BSONArray) + ts.data = f(ts.data) end ts end