mirror of https://github.com/rusefi/lua.git
small bug (zero is not error code)
This commit is contained in:
parent
351f7dad6b
commit
c3cc4de3fd
4
lapi.c
4
lapi.c
|
@ -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
|
** Lua API
|
||||||
** See Copyright Notice in lua.h
|
** 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))
|
if (isLfunction(o))
|
||||||
status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0);
|
status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0);
|
||||||
else
|
else
|
||||||
status = 0;
|
status = 1;
|
||||||
lua_unlock(L);
|
lua_unlock(L);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue