diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.239 2003/05/14 21:06:56 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.240 2003/07/07 13:34:25 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 | */ |
@@ -732,10 +732,8 @@ LUA_API int lua_dump (lua_State *L, lua_Chunkwriter writer, void *data) { | |||
732 | lua_lock(L); | 732 | lua_lock(L); |
733 | api_checknelems(L, 1); | 733 | api_checknelems(L, 1); |
734 | o = L->top - 1; | 734 | o = L->top - 1; |
735 | if (isLfunction(o) && clvalue(o)->l.nupvalues == 0) { | 735 | if (isLfunction(o) && clvalue(o)->l.nupvalues == 0) |
736 | luaU_dump(L, clvalue(o)->l.p, writer, data); | 736 | status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0); |
737 | status = 1; | ||
738 | } | ||
739 | else | 737 | else |
740 | status = 0; | 738 | status = 0; |
741 | lua_unlock(L); | 739 | lua_unlock(L); |