mirror of
https://github.com/lua/lua
synced 2024-11-22 12:51:30 +03:00
Small correction in assertion
This commit is contained in:
parent
1e0ad018ce
commit
3747487320
2
lapi.c
2
lapi.c
@ -230,7 +230,7 @@ LUA_API void lua_copy (lua_State *L, int fromidx, int toidx) {
|
||||
lua_lock(L);
|
||||
fr = index2value(L, fromidx);
|
||||
to = index2value(L, toidx);
|
||||
api_check(l, isvalid(L, to), "invalid index");
|
||||
api_check(L, isvalid(L, to), "invalid index");
|
||||
setobj(L, to, fr);
|
||||
if (isupvalue(toidx)) /* function upvalue? */
|
||||
luaC_barrier(L, clCvalue(s2v(L->ci->func)), fr);
|
||||
|
Loading…
Reference in New Issue
Block a user