From ee3bcd0190d8a0df91186becb4c71a18639e888e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 12 Aug 2016 13:50:06 -0400 Subject: Extra#to_s fix --- src/zip.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zip.cr b/src/zip.cr index dff3014..6660fc8 100644 --- a/src/zip.cr +++ b/src/zip.cr @@ -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 -- cgit v1.2.3