diff options
Diffstat (limited to 'testes/math.lua')
| -rw-r--r-- | testes/math.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/math.lua b/testes/math.lua index b010ff6c..c45a91ad 100644 --- a/testes/math.lua +++ b/testes/math.lua | |||
| @@ -3,10 +3,10 @@ | |||
| 3 | 3 | ||
| 4 | print("testing numbers and math lib") | 4 | print("testing numbers and math lib") |
| 5 | 5 | ||
| 6 | local minint = math.mininteger | 6 | local <const> minint = math.mininteger |
| 7 | local maxint = math.maxinteger | 7 | local <const> maxint = math.maxinteger |
| 8 | 8 | ||
| 9 | local intbits = math.floor(math.log(maxint, 2) + 0.5) + 1 | 9 | local <const> intbits = math.floor(math.log(maxint, 2) + 0.5) + 1 |
| 10 | assert((1 << intbits) == 0) | 10 | assert((1 << intbits) == 0) |
| 11 | 11 | ||
| 12 | assert(minint == 1 << (intbits - 1)) | 12 | assert(minint == 1 << (intbits - 1)) |
