summaryrefslogtreecommitdiff
path: root/lualibs-io.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-07-23 14:50:58 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-07-23 14:50:58 -0700
commitd287bf5f8bc24ad366a3ff8e07dcb93d0f48bd03 (patch)
treeede13cd011ffb59c4bd165a55a703f5ddf41a153 /lualibs-io.lua
parent32b7ab871a07f20c73187a577dedb737cc8b18fd (diff)
parentf2f3234465dd965a9915b97bc8b3ac77bd40c464 (diff)
downloadlualibs-d287bf5f8bc24ad366a3ff8e07dcb93d0f48bd03.tar.gz
Merge pull request #15 from phi-gamma/master
update to 2.0c
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