Browse Source

small bug (zero is not error code)

Roberto Ierusalimschy 20 years ago
parent
commit
c3cc4de3fd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lapi.c

+ 2 - 2
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;
 }
 }