diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-13 09:20:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-03-13 09:20:34 -0300 |
commit | 52aa2b5d24c560fb4d7a642971571ff9cbeabfcd (patch) | |
tree | a95b9c94c3a526ad85ebb26f910692d93b20888b /testes | |
parent | cc2b66c85687b095e68304c010b59851ca4093e1 (diff) | |
download | lua-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.lua | 4 |
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) |
317 | end}) | 317 | end}) |
318 | ]] | 318 | ]] |
@@ -322,7 +322,7 @@ creating 1 | |||
322 | creating 2 | 322 | creating 2 |
323 | 2 | 323 | 2 |
324 | creating 3 | 324 | creating 3 |
325 | nil | 325 | false |
326 | 1 | 326 | 1 |
327 | ]] | 327 | ]] |
328 | 328 | ||