aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-08-07 13:17:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-08-07 13:17:41 -0300
commit3135a6bbaba406fd9f1e97e0b9c8415e1ad32579 (patch)
treed03a797b5a3bad7b83013f4c4ae7162423622476 /lapi.c
parent95cbc402dc4f246d2eeff3b53afcd183b3a8ccb0 (diff)
downloadlua-3135a6bbaba406fd9f1e97e0b9c8415e1ad32579.tar.gz
lua-3135a6bbaba406fd9f1e97e0b9c8415e1ad32579.tar.bz2
lua-3135a6bbaba406fd9f1e97e0b9c8415e1ad32579.zip
luaH_[gs]etnum renamed to luaH_[gs]etint (as they only accept integers,
not generic numbers)
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);