Merge pull request #247 from Ezekiel-DA/dev

Fix file.seek() return value (@Ezekiel-DA)
This commit is contained in:
zeroday 2015-03-03 10:39:33 +08:00
commit c374b7df44
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ static int file_seek (lua_State *L)
long offset = luaL_optlong(L, 2, 0);
op = fs_seek(file_fd, offset, mode[op]);
if (op)
lua_pushboolean(L, 1); /* error */
lua_pushnil(L); /* error */
else
lua_pushinteger(L, fs_tell(file_fd));
return 1;