diff options
author | Paul Duncan <github@pablotron.org> | 2016-10-18 14:25:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-18 14:25:16 -0400 |
commit | fb911cf88d314328c90b8fdb8a319ee8a933f58f (patch) | |
tree | eb8824f787af6f4332181e367be6577252c05c39 | |
parent | 72937972e1a3e44e1f453d6ef3933f849153689e (diff) | |
parent | edb133129fb2dd01906e3e53a641c9ae28e2f00a (diff) | |
download | zip-crystal-fb911cf88d314328c90b8fdb8a319ee8a933f58f.tar.bz2 zip-crystal-fb911cf88d314328c90b8fdb8a319ee8a933f58f.zip |
Merge pull request #2 from Sija/crystal-0.19
Update to Crystal v0.19
-rw-r--r-- | src/zip.cr | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2096,9 +2096,9 @@ module Zip data_mem_io = MemoryIO.new(data_buf) # read path, extras, and comment from data memory io - @path = read_string(data_mem_io, @path_len, "name") as String - @extras = read_extras(data_mem_io, @extras_len) as Array(Extra::Base) - @comment = read_string(data_mem_io, @comment_len, "comment") as String + @path = read_string(data_mem_io, @path_len, "name").as(String) + @extras = read_extras(data_mem_io, @extras_len).as(Array(Extra::Base)) + @comment = read_string(data_mem_io, @comment_len, "comment").as(String) if e = @extras.find { |e| e.code == Extra::Zip64::CODE } e = e.as(Extra::Zip64) @@ -2260,7 +2260,7 @@ module Zip @io.pos = @pos + 30_u32 + name_len # read local extras - @local_extras = read_extras(@io, extras_len) as Array(Extra::Base) + @local_extras = read_extras(@io, extras_len).as(Array(Extra::Base)) end # return results |