Skip to content

Commit

Permalink
Iteration over ENV (singleton of EnvHash Dict) returned a SubString
Browse files Browse the repository at this point in the history
instead of a ByteString.  E.g. isequal(ENV,ENV) threw an error.

Now fixed.
  • Loading branch information
mauro3 authored and mschauer committed Jan 28, 2014
1 parent 551edbc commit cb03452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/env.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function next(::EnvHash, i)
if m == nothing
error("malformed environment entry: $env")
end
(m.captures, i+1)
(ByteString[convert(typeof(env),x) for x in m.captures], i+1)
end
end

Expand All @@ -124,7 +124,7 @@ function next(hash::EnvHash, pos::Ptr{Uint8})
if m == nothing
error("malformed environment entry: $env")
end
(m.captures, pos+len+1)
(ByteString[convert(typeof(env),x) for x in m.captures], i+1)
end
end

Expand Down

0 comments on commit cb03452

Please sign in to comment.