aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-09-01 14:42:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-09-01 14:42:22 -0300
commitc3cc4de3fd94732b5c774b513c1a3159f2eff429 (patch)
tree93ed83e8e6d2ecd64d2dde20f80a8bc889450820
parent351f7dad6b44f05f080e383d81e02b2878048f16 (diff)
downloadlua-c3cc4de3fd94732b5c774b513c1a3159f2eff429.tar.gz
lua-c3cc4de3fd94732b5c774b513c1a3159f2eff429.tar.bz2
lua-c3cc4de3fd94732b5c774b513c1a3159f2eff429.zip
small bug (zero is not error code)
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 65812d78..9fa1f057 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.46 2005/07/31 17:12:32 roberto Exp roberto $ 2** $Id: lapi.c,v 2.47 2005/08/24 16:15:49 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*/
@@ -875,7 +875,7 @@ LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
875 if (isLfunction(o)) 875 if (isLfunction(o))
876 status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0); 876 status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0);
877 else 877 else
878 status = 0; 878 status = 1;
879 lua_unlock(L); 879 lua_unlock(L);
880 return status; 880 return status;
881} 881}