small bug (zero is not error code)

This commit is contained in:
Roberto Ierusalimschy 2005-09-01 14:42:22 -03:00
parent 351f7dad6b
commit c3cc4de3fd
1 changed files with 2 additions and 2 deletions

4
lapi.c
View File

@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 2.46 2005/07/31 17:12:32 roberto Exp roberto $
** $Id: lapi.c,v 2.47 2005/08/24 16:15:49 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@ -875,7 +875,7 @@ LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
if (isLfunction(o))
status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0);
else
status = 0;
status = 1;
lua_unlock(L);
return status;
}