aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index b05897d7..eb1f3786 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.86 2009/07/15 17:57:03 roberto Exp roberto $ 2** $Id: lapi.c,v 2.87 2009/07/15 18:37:19 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*/
@@ -562,7 +562,7 @@ LUA_API void lua_rawgeti (lua_State *L, int idx, int n) {
562 lua_lock(L); 562 lua_lock(L);
563 o = index2addr(L, idx); 563 o = index2addr(L, idx);
564 api_check(L, ttistable(o)); 564 api_check(L, ttistable(o));
565 setobj2s(L, L->top, luaH_getnum(hvalue(o), n)); 565 setobj2s(L, L->top, luaH_getint(hvalue(o), n));
566 api_incr_top(L); 566 api_incr_top(L);
567 lua_unlock(L); 567 lua_unlock(L);
568} 568}
@@ -683,7 +683,7 @@ LUA_API void lua_rawseti (lua_State *L, int idx, int n) {
683 api_checknelems(L, 1); 683 api_checknelems(L, 1);
684 o = index2addr(L, idx); 684 o = index2addr(L, idx);
685 api_check(L, ttistable(o)); 685 api_check(L, ttistable(o));
686 setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); 686 setobj2t(L, luaH_setint(L, hvalue(o), n), L->top-1);
687 luaC_barriert(L, hvalue(o), L->top-1); 687 luaC_barriert(L, hvalue(o), L->top-1);
688 L->top--; 688 L->top--;
689 lua_unlock(L); 689 lua_unlock(L);