Skip to content

Commit

Permalink
Fix bug in compatability mode which appears in 1.3
Browse files Browse the repository at this point in the history
See issue #1
  • Loading branch information
Richard Palethorpe committed Sep 5, 2019
1 parent e6562da commit 37e5af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/intermediate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end

mutable struct TaggedStruct <: TaggedStructType
ttype::TaggedStructType
data::BSONArray
data::Union{BSONArray, Vector{UInt8}}
end

mutable struct TaggedArray <: Tagged
Expand Down Expand Up @@ -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
Expand Down

2 comments on commit 37e5af5

@richiejp
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register branch=qs

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/3302

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.2 -m "<description of version>" 37e5af5d0766bd772cf7d2ea570b18fa30d49fd1
git push origin v0.6.2

Please sign in to comment.