From 3ef8c7403c8afd91d79ea7a1d5daa1466f9ef411 Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Mon, 16 Aug 2010 12:21:19 +0800 Subject: [PATCH] Bugfix: The slice of signals args to remove is top *inclusive* --- common/luaobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/luaobject.c b/common/luaobject.c index c9366d8..d78922a 100644 --- a/common/luaobject.c +++ b/common/luaobject.c @@ -247,9 +247,8 @@ luaH_object_emit_signal(lua_State *L, gint oud, ret = nret; } } - /* Remove all signal functions and args from the stack */ - for (gint i = bot; i < top; i++) + for (gint i = bot; i <= top; i++) lua_remove(L, bot); /* Return the number of returned arguments */ return ret; -- 2.11.4.GIT