From 52aa2b5d24c560fb4d7a642971571ff9cbeabfcd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Mar 2024 09:20:34 -0300 Subject: Details - 'unsigned int' -> 'unsigned' - Some explicit casts to avoid warnings - Test avoids printing the value of 'fail' (which may not be nil) --- testes/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testes') diff --git a/testes/main.lua b/testes/main.lua index dde72a74..5c7d0a10 100644 --- a/testes/main.lua +++ b/testes/main.lua @@ -312,7 +312,7 @@ setmetatable({}, {__gc = function () -- this finalizer should not be called, as object will be -- created after 'lua_close' has been called setmetatable({}, {__gc = function () print(3) end}) - print(collectgarbage()) -- cannot call collector here + print(collectgarbage() or false) -- cannot call collector here os.exit(0, true) end}) ]] @@ -322,7 +322,7 @@ creating 1 creating 2 2 creating 3 -nil +false 1 ]] -- cgit v1.2.3-55-g6feb