Roberto Ierusalimschy
|
130c0e40e0
new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visible
|
12 年之前 |
Roberto Ierusalimschy
|
c72fb1cf8e
detail (removed 'assert')
|
12 年之前 |
Roberto Ierusalimschy
|
138e69cc55
correct error message for floating-point values out of (integer) range
|
12 年之前 |
Roberto Ierusalimschy
|
53210d7e5b
correct way (I hope) to convert floats to unsigned int
|
12 年之前 |
Roberto Ierusalimschy
|
0394314c7a
avoid using a negative value to test 'lua_tounsigned'
|
12 年之前 |
Roberto Ierusalimschy
|
0beeb4f6fa
configuration of number sizes goes "mainstream"
|
12 年之前 |
Roberto Ierusalimschy
|
788b251157
'math.random' operates with integers when used for integer results
|
12 年之前 |
Roberto Ierusalimschy
|
318575627f
avoid adding '.0' to "numbers" like "nan" and "inf"
|
12 年之前 |
Roberto Ierusalimschy
|
a14992992a
new version (5.3)
|
12 年之前 |
Roberto Ierusalimschy
|
48adb6984c
'io.write' writes integers directly (and correctly)
|
12 年之前 |
Roberto Ierusalimschy
|
c5069528e1
details ('Type* id' -> 'Type *id')
|
12 年之前 |
Roberto Ierusalimschy
|
6fb0b11350
string contatenation handles conversion of integers to strings +
|
12 年之前 |
Roberto Ierusalimschy
|
932e7fb0e1
'lua_tounsigned' takes number modulo 2^numbits as a result when
|
12 年之前 |
Roberto Ierusalimschy
|
188192ce9a
'luai_hashnum' "inlined" into 'hashfloat'
|
12 年之前 |
Roberto Ierusalimschy
|
fc083f1138
removed all tricks for conversions + 'luai_hashnum' moved to ltable.c
|
12 年之前 |
Roberto Ierusalimschy
|
ee865b9fe7
new implementation for 'lua_strx2number' to correct small
|
12 年之前 |
Roberto Ierusalimschy
|
d630daca1a
"legal" way to convert a float to an integer in C
|
12 年之前 |
Roberto Ierusalimschy
|
8c883cb4e8
'objlen' can return integers
|
12 年之前 |
Roberto Ierusalimschy
|
c75cca0559
detail (case '%d' of 'luaO_pushvfstring' should use integers)
|
12 年之前 |
Roberto Ierusalimschy
|
1414b7123c
support for the case when 'l_mathop' does not conform to lua_Number
|
12 年之前 |
Roberto Ierusalimschy
|
3563b3f519
first version of control for number sizes (still in 'local' section)
|
12 年之前 |
Roberto Ierusalimschy
|
d46ed54646
no more IEEE tricks
|
12 年之前 |
Roberto Ierusalimschy
|
e2c8c756ee
removed 'IEEE tricks' (should not be needed in Lua with integers)
|
12 年之前 |
Roberto Ierusalimschy
|
5ca5086c19
'tonumber' now works with integers too
|
12 年之前 |
Roberto Ierusalimschy
|
2d6a0ae149
added patch to last bug
|
12 年之前 |
Roberto Ierusalimschy
|
b5ec26101f
new API function 'lua_cvtonum' to convert a value (number or string)
|
12 年之前 |
Roberto Ierusalimschy
|
36e8771076
'luaO_str2int' more generic: accepts white spaces around the numeral
|
12 年之前 |
Roberto Ierusalimschy
|
27f09415e3
new read format "*i" for reading integers
|
12 年之前 |
Roberto Ierusalimschy
|
4ad9970649
uses integers for time
|
12 年之前 |
Roberto Ierusalimschy
|
bef345a4b8
bug: Wrong error message in some short-cut expressions
|
12 年之前 |