Browse Source

set modes to binary explicitly

master
XeonSquared 5 months ago
parent
commit
4d863c6ff1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lz16/liblz16.lua

+ 2
- 2
lz16/liblz16.lua View File

@@ -37,7 +37,7 @@ local function readBuffer(fi)
function stream.close()
fi:close()
end
return buffer.new("r",stream)
return buffer.new("rb",stream)
end

local function writeBuffer(fo)
@@ -51,7 +51,7 @@ local function writeBuffer(fo)
fo:close()
end
fo:write("lz16") -- write header
return buffer.new("w",stream)
return buffer.new("wb",stream)
end

function lz16.buffer(stream)


Loading…
Cancel
Save