aboutsummaryrefslogtreecommitdiff
path: root/testes/math.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/math.lua')
-rw-r--r--testes/math.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/testes/math.lua b/testes/math.lua
index 242579b1..0d228d09 100644
--- a/testes/math.lua
+++ b/testes/math.lua
@@ -8,11 +8,10 @@ local string = require "string"
8 8
9global none 9global none
10 10
11global print, assert, pcall, type, pairs, load 11global<const> print, assert, pcall, type, pairs, load
12global tonumber, tostring, select 12global<const> tonumber, tostring, select
13 13
14local minint <const> = math.mininteger 14local<const> minint, maxint = math.mininteger, math.maxinteger
15local maxint <const> = math.maxinteger
16 15
17local intbits <const> = math.floor(math.log(maxint, 2) + 0.5) + 1 16local intbits <const> = math.floor(math.log(maxint, 2) + 0.5) + 1
18assert((1 << intbits) == 0) 17assert((1 << intbits) == 0)