"no value" added to array luaT_typenames + occurrences of "userdata"

in that array unified in a single address
This commit is contained in:
Roberto Ierusalimschy
2010-01-13 14:18:25 -02:00
parent 0c7de97d47
commit 070d3743a7
5 changed files with 20 additions and 23 deletions

4
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 2.109 2010/01/08 15:16:56 roberto Exp roberto $
** $Id: lapi.c,v 2.110 2010/01/11 17:38:30 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -255,7 +255,7 @@ LUA_API int lua_type (lua_State *L, int idx) {
LUA_API const char *lua_typename (lua_State *L, int t) {
UNUSED(L);
return (t == LUA_TNONE) ? "no value" : luaT_typenames[t];
return typename(t);
}