aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
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 661d5ba5..3f0a75bb 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.113 2000/12/26 18:46:09 roberto Exp roberto $ 2** $Id: lapi.c,v 1.114 2000/12/28 12:55:41 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*/
@@ -456,7 +456,7 @@ LUA_API int lua_next (lua_State *L, int index) {
456 456
457LUA_API int lua_getn (lua_State *L, int index) { 457LUA_API int lua_getn (lua_State *L, int index) {
458 Hash *h = hvalue(luaA_index(L, index)); 458 Hash *h = hvalue(luaA_index(L, index));
459 const TObject *value = luaH_getstr(h, luaS_new(L, "n")); /* value = h.n */ 459 const TObject *value = luaH_getstr(h, luaS_newliteral(L, "n")); /* = h.n */
460 if (ttype(value) == LUA_TNUMBER) 460 if (ttype(value) == LUA_TNUMBER)
461 return (int)nvalue(value); 461 return (int)nvalue(value);
462 else { 462 else {