diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-20 15:42:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-20 15:42:41 -0200 |
commit | c51bcf4796d1e39bb9840825a72085c9a51ec402 (patch) | |
tree | 221a63329b5fc7cbca88110c36022df8026b13e9 /lapi.c | |
parent | 03bab90303270534ba6a415b5379d4659757082d (diff) | |
download | lua-c51bcf4796d1e39bb9840825a72085c9a51ec402.tar.gz lua-c51bcf4796d1e39bb9840825a72085c9a51ec402.tar.bz2 lua-c51bcf4796d1e39bb9840825a72085c9a51ec402.zip |
it's ok to dump functions with upvalues
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.247 2003/10/10 13:29:08 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.248 2003/10/20 12:25:23 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 | */ |
@@ -784,7 +784,7 @@ LUA_API int lua_dump (lua_State *L, lua_Chunkwriter writer, void *data) { | |||
784 | lua_lock(L); | 784 | lua_lock(L); |
785 | api_checknelems(L, 1); | 785 | api_checknelems(L, 1); |
786 | o = L->top - 1; | 786 | o = L->top - 1; |
787 | if (isLfunction(o) && clvalue(o)->l.nupvalues == 0) | 787 | if (isLfunction(o)) |
788 | status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0); | 788 | status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0); |
789 | else | 789 | else |
790 | status = 0; | 790 | status = 0; |