Skip to content

Commit 6d3400e

Browse files
committed
make 0.3 compatible
1 parent 0ca9ab2 commit 6d3400e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function add_format{sym}(fmt::Type{DataFormat{sym}}, magic::Union(Tuple,Abstract
4949
end
5050

5151
# for multiple magic bytes
52-
function add_format{sym, T <: Vector{Uint8}}(fmt::Type{DataFormat{sym}}, magics::Tuple{T, Vararg{T}}, extension)
52+
function add_format{sym, T <: Vector{Uint8}, N}(fmt::Type{DataFormat{sym}}, magics::NTuple{N, T}, extension)
5353
haskey(sym2info, sym) && error("format ", fmt, " is already registered")
5454
magics = map(canonicalize_magic, magics)
5555
for magic in magics

0 commit comments

Comments
 (0)