diff --git a/lz16/liblz16.lua b/lz16/liblz16.lua index e4ef668..80cf934 100644 --- a/lz16/liblz16.lua +++ b/lz16/liblz16.lua @@ -23,14 +23,12 @@ end local function readBuffer(fi) local stream = {} - if fi:read(4) ~= "lz16" and not tO.f then + if fi:read(4) ~= "lz16" then return false, "not an lz16 archive" end function stream.read() local len = toint(fi:read(2) or "\0\0") if len < 1 then - print("nothing") - coroutine.yield() return nil end coroutine.yield() @@ -58,7 +56,6 @@ end function lz16.buffer(stream) if stream.mode.w then - print("write") return writeBuffer(stream) end return readBuffer(stream)