Commit c374b7df authored by zeroday's avatar zeroday
Browse files

Merge pull request #247 from Ezekiel-DA/dev

Fix file.seek() return value (@Ezekiel-DA)
parents 9add31e2 c869eddb
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment