Skip to content

Commit

Permalink
Fix deprecated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
FND committed Dec 1, 2017
1 parent eead224 commit 8ef9ce4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gzip.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type BitStream
end
BitStream(io::IO) = BitStream(io, BitVector(0))

typealias GzipFlags UInt8
const GzipFlags = UInt8

type GzipHeader
id::Vector{UInt8} # length 2
Expand Down Expand Up @@ -166,7 +166,7 @@ function make_bit_vector(n::Any, len::Any)
end
#read_huffman_stream(file)

abstract Node
abstract type Node end

type InternalNode <: Node
one::Node
Expand Down Expand Up @@ -226,7 +226,7 @@ function read_first_tree(bs::BitStream, hclen)
return first_tree
end

typealias HuffmanTree InternalNode
const HuffmanTree = InternalNode

function read_huffman_bits(bs::BitStream, tree::HuffmanTree)
node = tree
Expand Down

0 comments on commit 8ef9ce4

Please sign in to comment.