diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-06-18 11:19:52 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-06-18 11:19:52 -0300 |
commit | dcad08b76d3d251c0beff4e7c692035c11641509 (patch) | |
tree | 86f74a2de93edc99d200846d8ace9366c8013814 /ldo.c | |
parent | afbf5c5dab0b761f8f7344882dd7affd60dc7035 (diff) | |
download | lua-dcad08b76d3d251c0beff4e7c692035c11641509.tar.gz lua-dcad08b76d3d251c0beff4e7c692035c11641509.tar.bz2 lua-dcad08b76d3d251c0beff4e7c692035c11641509.zip |
details (use original type when saving variable's value)
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.137 2015/03/30 16:05:23 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.138 2015/05/22 17:48:19 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -570,7 +570,7 @@ static void resume (lua_State *L, void *ud) { | |||
570 | 570 | ||
571 | LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) { | 571 | LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) { |
572 | int status; | 572 | int status; |
573 | int oldnny = L->nny; /* save "number of non-yieldable" calls */ | 573 | unsigned short oldnny = L->nny; /* save "number of non-yieldable" calls */ |
574 | lua_lock(L); | 574 | lua_lock(L); |
575 | luai_userstateresume(L, nargs); | 575 | luai_userstateresume(L, nargs); |
576 | L->nCcalls = (from) ? from->nCcalls + 1 : 1; | 576 | L->nCcalls = (from) ? from->nCcalls + 1 : 1; |