From 38a79ca9f0641bc84595f3c5de3fb32fa6e9c1b3 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 9 Apr 2009 14:54:19 +0200 Subject: [PATCH] luaa: checktype use both toudata Signed-off-by: Julien Danjou --- luaa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luaa.c b/luaa.c index 9aa77b710..296e85c8a 100644 --- a/luaa.c +++ b/luaa.c @@ -413,7 +413,7 @@ luaAe_type(lua_State *L) luaL_checkany(L, 1); #define CHECK_TYPE(type) \ do { \ - if(luaA_toudata(L, 1, #type)) \ + if(luaA_toudata2(L, 1, #type) || luaA_toudata(L, 1, #type)) \ { \ lua_pushliteral(L, #type); \ return 1; \