aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-01-13 14:18:25 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-01-13 14:18:25 -0200
commit070d3743a7892ec6429000c8309b72bfb0600d19 (patch)
tree6922c5b887e36400d6d1a9971d2b831799d9a2be /lapi.c
parent0c7de97d47074b82dd08e67443e78dcee1241277 (diff)
downloadlua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.gz
lua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.bz2
lua-070d3743a7892ec6429000c8309b72bfb0600d19.zip
"no value" added to array luaT_typenames + occurrences of "userdata"
in that array unified in a single address
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 07dbda85..c9b30ace 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.109 2010/01/08 15:16:56 roberto Exp roberto $ 2** $Id: lapi.c,v 2.110 2010/01/11 17:38:30 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -255,7 +255,7 @@ LUA_API int lua_type (lua_State *L, int idx) {
255 255
256LUA_API const char *lua_typename (lua_State *L, int t) { 256LUA_API const char *lua_typename (lua_State *L, int t) {
257 UNUSED(L); 257 UNUSED(L);
258 return (t == LUA_TNONE) ? "no value" : luaT_typenames[t]; 258 return typename(t);
259} 259}
260 260
261 261