Skip to content

Commit

Permalink
fix for comparing against Char
Browse files Browse the repository at this point in the history
  • Loading branch information
WestleyArgentum committed Apr 5, 2013
1 parent a4e7ba1 commit 15ecd9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JSON.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ function parse(strng::String)

end

function parse(io::IO, buff_type)
function parse(io::IO, el_type)
obj = ""
open_bracket = nothing
close_bracket = nothing
num_brackets_needed = 1

while open_bracket == nothing
c = read(io, buff_type)
c = char(read(io, el_type))
if c == '{'
open_bracket = '{'
close_bracket = '}'
Expand All @@ -298,7 +298,7 @@ function parse(io::IO, buff_type)
obj = string(open_bracket)

while num_brackets_needed > 0
c = read(io, buff_type)
c = char(read(io, el_type))
obj = string(obj, c)

if c == open_bracket
Expand Down

0 comments on commit 15ecd9a

Please sign in to comment.