Skip to content

Commit

Permalink
fix Bool again
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Feb 15, 2022
1 parent 55d9631 commit 4942049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UnROOT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
function unsafe_arraycastntoh(::Type{D}, ary::Vector{S}) where {S, D}
@static if VERSION < v"1.7"
res = reinterpret(D, ary)
D == Bool && return res
D == Bool && return collect(res) #FIXME I hate this
return ntoh.(res)
else
l = sizeof(S)*length(ary)÷sizeof(D)
Expand Down

0 comments on commit 4942049

Please sign in to comment.