- 'unsigned int' -> 'unsigned'
- Some explicit casts to avoid warnings
- Test avoids printing the value of 'fail' (which may not be nil)
This commit is contained in:
Roberto Ierusalimschy committed 2024-03-13 09:20:34 -03:00
1 parent cc2b66c856
commit 52aa2b5d24
4 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -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
]]