aboutsummaryrefslogtreecommitdiff
path: root/io/sgd_buffer.lua
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2015-06-05 16:56:33 +0800
committerDeterminant <ted.sybil@gmail.com>2015-06-05 16:56:33 +0800
commiteba6049a82455499c68ee875843b6f44d6164fa5 (patch)
tree318485b878b80bf1ebfe5bcea4eecf014561f97e /io/sgd_buffer.lua
parentb6b85c02db6a44c17957d7b59cf68494da822a0b (diff)
add close method for ChunkFile, fix #18
Diffstat (limited to 'io/sgd_buffer.lua')
-rw-r--r--io/sgd_buffer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/sgd_buffer.lua b/io/sgd_buffer.lua
index bf72744..381b863 100644
--- a/io/sgd_buffer.lua
+++ b/io/sgd_buffer.lua
@@ -15,7 +15,7 @@ function SGDBuffer:__init(global_conf, buffer_conf)
local buffs = {}
for id, width in pairs(reader_spec.data) do
buffs[id] = {data = global_conf.mmat_type(self.buffer_size, width),
- leftover = {},
+ leftover = nil,
width = width}
end
table.insert(self.readers, {buffs = buffs,