From 6d09f60956bce59c7e526a34720ef473418da0f4 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 9 Dec 2007 00:50:33 +0000 Subject: [PATCH] From r6465, pass 0 as the third arg of lua_gc() instead of NULL. gcc gave me a warning because the argument is an int and not a pointer. I grepped in liblua/ and saw usage in there using 0 as well. --- nse_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_main.cc b/nse_main.cc index 283ec0d0e..288c62888 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -299,7 +299,7 @@ int process_mainloop(lua_State* l) { } SCRIPT_ENGINE_TRY(process_finalize(l, current.registry_idx)); - SCRIPT_ENGINE_TRY(lua_gc(l, LUA_GCCOLLECT,NULL)); + SCRIPT_ENGINE_TRY(lua_gc(l, LUA_GCCOLLECT, 0)); } else { // this script returned because of an error // print the failing reason if the verbose level is high enough