Skip to content

Commit

Permalink
don't access String .data field (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and tkelman committed Dec 29, 2016
1 parent 7abcce2 commit c20c25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Base.info{sym}(::Type{DataFormat{sym}}) = sym2info[sym]

canonicalize_magic{N}(m::NTuple{N,UInt8}) = m
canonicalize_magic(m::AbstractVector{UInt8}) = tuple(m...)
canonicalize_magic(m::String) = canonicalize_magic(m.data)
canonicalize_magic(m::String) = canonicalize_magic(Vector{UInt8}(m))



Expand Down

0 comments on commit c20c25f

Please sign in to comment.