From d1b399761ffe554f3f3c4ced187c3b8ec58233fb Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 26 Jun 2009 16:07:50 +0300 Subject: [PATCH] Fix rpm.unregister() Lua extension - hook data is userdata, not light userdata --- rpmio/rpmlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 7f25655..bd94eff 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -694,7 +694,7 @@ static int rpm_unregister(lua_State *L) { if (!lua_isstring(L, 1)) { (void) luaL_argerror(L, 1, "hook name expected"); - } else if (!lua_islightuserdata(L, 2)) { + } else if (!lua_isuserdata(L, 2)) { (void) luaL_argerror(L, 2, "hook information expected"); } else { rpmluaHookData hookdata = (rpmluaHookData)lua_touserdata(L, 2); -- 2.7.4