diff options
-rw-r--r-- | testes/code.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/code.lua b/testes/code.lua index e39c62ad..1a01c4a2 100644 --- a/testes/code.lua +++ b/testes/code.lua | |||
@@ -239,7 +239,7 @@ checkI(function () return ~~-1024.0 end, -1024) | |||
239 | checkI(function () return ((100 << 6) << -4) >> 2 end, 100) | 239 | checkI(function () return ((100 << 6) << -4) >> 2 end, 100) |
240 | 240 | ||
241 | -- borders around MAXARG_sBx ((((1 << 17) - 1) >> 1) == 65535) | 241 | -- borders around MAXARG_sBx ((((1 << 17) - 1) >> 1) == 65535) |
242 | local sbx = ((1 << "17") - 1) >> 1 -- avoid folding | 242 | local a = 17; local sbx = ((1 << a) - 1) >> 1 -- avoid folding |
243 | checkI(function () return 65535 end, sbx) | 243 | checkI(function () return 65535 end, sbx) |
244 | checkI(function () return -65535 end, -sbx) | 244 | checkI(function () return -65535 end, -sbx) |
245 | checkI(function () return 65536 end, sbx + 1) | 245 | checkI(function () return 65536 end, sbx + 1) |