aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-13 09:20:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-13 09:20:34 -0300
commit52aa2b5d24c560fb4d7a642971571ff9cbeabfcd (patch)
treea95b9c94c3a526ad85ebb26f910692d93b20888b /testes
parentcc2b66c85687b095e68304c010b59851ca4093e1 (diff)
downloadlua-52aa2b5d24c560fb4d7a642971571ff9cbeabfcd.tar.gz
lua-52aa2b5d24c560fb4d7a642971571ff9cbeabfcd.tar.bz2
lua-52aa2b5d24c560fb4d7a642971571ff9cbeabfcd.zip
Details
- 'unsigned int' -> 'unsigned' - Some explicit casts to avoid warnings - Test avoids printing the value of 'fail' (which may not be nil)
Diffstat (limited to 'testes')
-rw-r--r--testes/main.lua4
1 files changed, 2 insertions, 2 deletions
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 ()
312 -- this finalizer should not be called, as object will be 312 -- this finalizer should not be called, as object will be
313 -- created after 'lua_close' has been called 313 -- created after 'lua_close' has been called
314 setmetatable({}, {__gc = function () print(3) end}) 314 setmetatable({}, {__gc = function () print(3) end})
315 print(collectgarbage()) -- cannot call collector here 315 print(collectgarbage() or false) -- cannot call collector here
316 os.exit(0, true) 316 os.exit(0, true)
317end}) 317end})
318]] 318]]
@@ -322,7 +322,7 @@ creating 1
322creating 2 322creating 2
3232 3232
324creating 3 324creating 3
325nil 325false
3261 3261
327]] 327]]
328 328