summaryrefslogtreecommitdiff
path: root/lualibs-io.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-07-14 10:01:25 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-07-14 10:01:25 +0200
commite00d066f7a7cb1ffd8df94d90e16565c3dedeec7 (patch)
treec9893c780ccc05c8f5402b8bf09caf361cbeea86 /lualibs-io.lua
parentf2f35fe3d8a1c5ce74ddbb8eef3cad2b18a379dc (diff)
downloadlualibs-e00d066f7a7cb1ffd8df94d90e16565c3dedeec7.tar.gz
sync with Context as of 2013-07-14
Diffstat (limited to 'lualibs-io.lua')
-rw-r--r--lualibs-io.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lualibs-io.lua b/lualibs-io.lua
index 06e1fb5..e3a443b 100644
--- a/lualibs-io.lua
+++ b/lualibs-io.lua
@@ -35,6 +35,7 @@ local function readall(f)
return f:read('*all')
else
local done = f:seek("set",0)
+ local step
if size < 1024*1024 then
step = 1024 * 1024
elseif size > 16*1024*1024 then