diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-08-07 13:17:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-08-07 13:17:41 -0300 |
commit | 3135a6bbaba406fd9f1e97e0b9c8415e1ad32579 (patch) | |
tree | d03a797b5a3bad7b83013f4c4ae7162423622476 /lapi.c | |
parent | 95cbc402dc4f246d2eeff3b53afcd183b3a8ccb0 (diff) | |
download | lua-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |