Roberto Ierusalimschy
|
e2c8c756ee
removed 'IEEE tricks' (should not be needed in Lua with integers)
|
12 years ago |
Roberto Ierusalimschy
|
5ca5086c19
'tonumber' now works with integers too
|
12 years ago |
Roberto Ierusalimschy
|
2d6a0ae149
added patch to last bug
|
12 years ago |
Roberto Ierusalimschy
|
b5ec26101f
new API function 'lua_cvtonum' to convert a value (number or string)
|
12 years ago |
Roberto Ierusalimschy
|
36e8771076
'luaO_str2int' more generic: accepts white spaces around the numeral
|
12 years ago |
Roberto Ierusalimschy
|
27f09415e3
new read format "*i" for reading integers
|
12 years ago |
Roberto Ierusalimschy
|
4ad9970649
uses integers for time
|
12 years ago |
Roberto Ierusalimschy
|
bef345a4b8
bug: Wrong error message in some short-cut expressions
|
12 years ago |
Roberto Ierusalimschy
|
0ce3018109
'pushnum' pushes a "number" (float) + new C instruction 'pushint'
|
12 years ago |
Roberto Ierusalimschy
|
0233ce0815
new function 'math.numbits' (not a final decision)
|
12 years ago |
Roberto Ierusalimschy
|
1f2b82bf25
correct way to avoid compile-time errors in integer divisions
|
12 years ago |
Roberto Ierusalimschy
|
f2043b7a58
correct error message for conversion errors from float to int
|
12 years ago |
Roberto Ierusalimschy
|
2b1c2c61b0
bug: Wrong assert when reporting concatenation errors.
|
12 years ago |
Roberto Ierusalimschy
|
fa6ea831b3
macro 'nvalue' removed (direct conversion from integer to double,
|
12 years ago |
Roberto Ierusalimschy
|
b22a4280c6
macro 'nvalue' removed + cast to void added to avoid warnings
|
12 years ago |
Roberto Ierusalimschy
|
29fe3abda2
new function 'math.isfloat'
|
12 years ago |
Roberto Ierusalimschy
|
6347004be9
stack overflow in vararg functions + garbage collector in recursive loops
|
12 years ago |
Roberto Ierusalimschy
|
67532d5a10
constant folding and API arithmetic with integers
|
12 years ago |
Roberto Ierusalimschy
|
6920a7f2e3
new macro 'intop' (to perform integer arithmetic on unsigned types)
|
12 years ago |
Roberto Ierusalimschy
|
88bf2f83c0
new function 'tointeger' + 'luaV_arith' replaced by 'luaT_trybinTM'
|
12 years ago |
Roberto Ierusalimschy
|
8fff05f6d0
integer division operates only on integers
|
12 years ago |
Roberto Ierusalimschy
|
9b9becf384
added 'const' to parameters of 'luaG_concaterror'
|
12 years ago |
Roberto Ierusalimschy
|
00744a2729
'luaO_arith' -> 'luaO_numarith'
|
12 years ago |
Roberto Ierusalimschy
|
b4be507578
new function 'luaT_trybinTM'
|
12 years ago |
Roberto Ierusalimschy
|
360587f319
favoring 'tonumber' over 'nvalue'
|
12 years ago |
Roberto Ierusalimschy
|
eee51492e2
dumping and undumping integers
|
12 years ago |
Roberto Ierusalimschy
|
c37b7b3cca
bug: garbage collector can trigger too many times in recursive loops,
|
12 years ago |
Roberto Ierusalimschy
|
f79584faca
detail
|
12 years ago |
Roberto Ierusalimschy
|
4abe99dc34
new interface for 'tonumber'
|
12 years ago |
Roberto Ierusalimschy
|
d4e6b75098
"integer" keys in tables are now lua_Integer, not 'int'.
|
12 years ago |