aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools.c b/src/tools.c
index 77f6abe..5350e75 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -286,7 +286,7 @@ FuncSubType luaG_getfuncsubtype( lua_State *L, int _i)
286 // the provided writer fails with code 666 286 // the provided writer fails with code 666
287 // therefore, anytime we get 666, this means that lua_dump() attempted a dump 287 // therefore, anytime we get 666, this means that lua_dump() attempted a dump
288 // all other cases mean this is either a C or LuaJIT-fast function 288 // all other cases mean this is either a C or LuaJIT-fast function
289 dumpres = lua503_dump( L, dummy_writer, NULL, 1); 289 dumpres = lua503_dump( L, dummy_writer, NULL, 0);
290 lua_pop( L, mustpush); 290 lua_pop( L, mustpush);
291 if( dumpres == 666) 291 if( dumpres == 666)
292 { 292 {
@@ -1192,7 +1192,7 @@ static void inter_copy_func( struct s_Universe* U, lua_State* L2, uint_t L2_cach
1192 // "value returned is the error code returned by the last call 1192 // "value returned is the error code returned by the last call
1193 // to the writer" (and we only return 0) 1193 // to the writer" (and we only return 0)
1194 // not sure this could ever fail but for memory shortage reasons 1194 // not sure this could ever fail but for memory shortage reasons
1195 if( lua503_dump( L, buf_writer, &b, 1) != 0) 1195 if( lua503_dump( L, buf_writer, &b, 0) != 0)
1196 { 1196 {
1197 luaL_error( L, "internal error: function dump failed."); 1197 luaL_error( L, "internal error: function dump failed.");
1198 } 1198 }