From f8b39a92d84211c76a21f86cf974c759a544c7c5 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 25 Oct 2010 23:47:58 -0400 Subject: Fix compiler warning; src/textadept.c --- src/textadept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/textadept.c b/src/textadept.c index b7df6c27..64d85f9c 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -2025,7 +2025,7 @@ static int l_cf_reset(lua_State *lua) { static gbool emit_timeout(gpointer data) { int *refs = (int *)data; lua_rawgeti(lua, LUA_REGISTRYINDEX, refs[0]); // function - int nargs = 0, funcindex = lua_gettop(lua), repeat = TRUE; + int nargs = 0, repeat = TRUE; while (refs[++nargs]) lua_rawgeti(lua, LUA_REGISTRYINDEX, refs[nargs]); l_call_function(nargs - 1, 1, TRUE); if (lua_toboolean(lua, -1) == 0 || lua_isnil(lua, -1)) { -- cgit v1.2.3