diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-08-12 13:50:06 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-08-12 13:50:06 -0400 |
commit | ee3bcd0190d8a0df91186becb4c71a18639e888e (patch) | |
tree | 55005757f18a821558f4b21cc8c9af59b2643e75 /src | |
parent | 67a57042b6098a2196eba6c5a4dde399f51d1eb3 (diff) | |
download | zip-crystal-ee3bcd0190d8a0df91186becb4c71a18639e888e.tar.bz2 zip-crystal-ee3bcd0190d8a0df91186becb4c71a18639e888e.zip |
Extra#to_s fix
Diffstat (limited to 'src')
-rw-r--r-- | src/zip.cr | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -446,7 +446,7 @@ module Zip def to_s(io) : UInt16 @code.to_u16.to_io(io, LE) @data.size.to_u16.to_io(io, LE) - @data.to_s(io) + @data.to_s(io) if @data.size > 0 # return number of bytes written bytes_needed |