set modes to binary explicitly
This commit is contained in:
parent
f7ee3e3250
commit
4d863c6ff1
@ -37,7 +37,7 @@ local function readBuffer(fi)
|
|||||||
function stream.close()
|
function stream.close()
|
||||||
fi:close()
|
fi:close()
|
||||||
end
|
end
|
||||||
return buffer.new("r",stream)
|
return buffer.new("rb",stream)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function writeBuffer(fo)
|
local function writeBuffer(fo)
|
||||||
@ -51,7 +51,7 @@ local function writeBuffer(fo)
|
|||||||
fo:close()
|
fo:close()
|
||||||
end
|
end
|
||||||
fo:write("lz16") -- write header
|
fo:write("lz16") -- write header
|
||||||
return buffer.new("w",stream)
|
return buffer.new("wb",stream)
|
||||||
end
|
end
|
||||||
|
|
||||||
function lz16.buffer(stream)
|
function lz16.buffer(stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user