Skip to content

Commit

Permalink
Merge pull request #341 from kengonakajima/master
Browse files Browse the repository at this point in the history
fix: SyncWriteStream in lib/luvit/fs.lua breaks _G.len
  • Loading branch information
rphillips committed Sep 24, 2012
2 parents fd94f2c + 922fd84 commit cb94554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/luvit/fs.lua
Expand Up @@ -363,7 +363,7 @@ function SyncWriteStream:initialize(fd)
end
function SyncWriteStream:write(chunk, callback)
len = fs.writeSync(self.fd, self.offset, chunk)
local len = fs.writeSync(self.fd, self.offset, chunk)
self.offset = self.offset + len
return len
end
Expand Down

0 comments on commit cb94554

Please sign in to comment.