Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | avoid using 'modf' in the implementation of 'math.modf', to avoid | Roberto Ierusalimschy | 2013-06-25 | 1 | -10/+12 | |
| | | | | | problems with 'double*'. (When using 'float' as lua_Number, 'float*' is not compatible with 'double*'...) | |||||
* | 'long' may have more than 32 bits in some machines; use 'int' for | Roberto Ierusalimschy | 2013-06-21 | 1 | -5/+12 | |
| | | | | small lua_Integer unless necessary to use 'long' | |||||
* | small bugs uncovered in a 64-bit machine (where 'long' has 64 bits) | Roberto Ierusalimschy | 2013-06-21 | 1 | -3/+3 | |
| | ||||||
* | try to avoid warnings when converting int to pointer | Roberto Ierusalimschy | 2013-06-20 | 1 | -2/+3 | |
| | ||||||
* | reorganization of warnings + update of explicit dependencies (gcc -MM) | Roberto Ierusalimschy | 2013-06-20 | 1 | -7/+10 | |
| | ||||||
* | In the table that hashes constants, use a light userdata as keys | Roberto Ierusalimschy | 2013-06-20 | 1 | -9/+9 | |
| | | | | | to integer values to avoid collisions with floats with the same numerical value | |||||
* | avoid warning for unary minus over an unsigned value | Roberto Ierusalimschy | 2013-06-20 | 1 | -2/+2 | |
| | ||||||
* | added "reasonable" limit for 'string.rep' (otherwise it is too easy | Roberto Ierusalimschy | 2013-06-20 | 1 | -3/+8 | |
| | | | | to crash the machine) | |||||
* | new macro 'l_floor' (allows 'floorf' even when other math operations | Roberto Ierusalimschy | 2013-06-20 | 4 | -9/+10 | |
| | | | | do not have an 'f' variant) | |||||
* | use lua_Integer for integer parameters to avoid truncation | Roberto Ierusalimschy | 2013-06-19 | 1 | -15/+15 | |
| | ||||||
* | new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visible | Roberto Ierusalimschy | 2013-06-19 | 4 | -8/+14 | |
| | | | | from Lua; these must fit in a lua_Integer | |||||
* | detail (removed 'assert') | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+2 | |
| | ||||||
* | correct error message for floating-point values out of (integer) range | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+15 | |
| | ||||||
* | correct way (I hope) to convert floats to unsigned int | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+8 | |
| | ||||||
* | avoid using a negative value to test 'lua_tounsigned' | Roberto Ierusalimschy | 2013-06-14 | 1 | -4/+5 | |
| | ||||||
* | configuration of number sizes goes "mainstream" | Roberto Ierusalimschy | 2013-06-13 | 1 | -69/+71 | |
| | ||||||
* | 'math.random' operates with integers when used for integer results | Roberto Ierusalimschy | 2013-06-13 | 1 | -9/+11 | |
| | | | | (1 or 2 parameters) | |||||
* | avoid adding '.0' to "numbers" like "nan" and "inf" | Roberto Ierusalimschy | 2013-06-07 | 1 | -3/+3 | |
| | ||||||
* | new version (5.3) | Roberto Ierusalimschy | 2013-06-07 | 1 | -4/+4 | |
| | ||||||
* | 'io.write' writes integers directly (and correctly) | Roberto Ierusalimschy | 2013-06-07 | 1 | -3/+5 | |
| | ||||||
* | details ('Type* id' -> 'Type *id') | Roberto Ierusalimschy | 2013-06-07 | 3 | -8/+8 | |
| | ||||||
* | string contatenation handles conversion of integers to strings + | Roberto Ierusalimschy | 2013-06-04 | 3 | -22/+25 | |
| | | | | floats always format as floats (with decimal dot or exponent) | |||||
* | 'lua_tounsigned' takes number modulo 2^numbits as a result when | Roberto Ierusalimschy | 2013-06-04 | 1 | -2/+28 | |
| | | | | | number is a float (That may change...) | |||||
* | 'luai_hashnum' "inlined" into 'hashfloat' | Roberto Ierusalimschy | 2013-05-29 | 1 | -5/+8 | |
| | ||||||
* | removed all tricks for conversions + 'luai_hashnum' moved to ltable.c | Roberto Ierusalimschy | 2013-05-29 | 1 | -43/+1 | |
| | ||||||
* | new implementation for 'lua_strx2number' to correct small | Roberto Ierusalimschy | 2013-05-27 | 1 | -24/+36 | |
| | | | | problems with numbers like 0x10000...000p-100 | |||||
* | "legal" way to convert a float to an integer in C | Roberto Ierusalimschy | 2013-05-27 | 3 | -10/+30 | |
| | ||||||
* | 'objlen' can return integers | Roberto Ierusalimschy | 2013-05-26 | 1 | -3/+3 | |
| | ||||||
* | detail (case '%d' of 'luaO_pushvfstring' should use integers) | Roberto Ierusalimschy | 2013-05-26 | 1 | -2/+2 | |
| | ||||||
* | support for the case when 'l_mathop' does not conform to lua_Number | Roberto Ierusalimschy | 2013-05-26 | 1 | -2/+7 | |
| | | | | | (problem with pointers to lua_Number solved by a typedef selected automatically by 'l_mathop') | |||||
* | first version of control for number sizes (still in 'local' section) | Roberto Ierusalimschy | 2013-05-26 | 1 | -4/+36 | |
| | ||||||
* | no more IEEE tricks | Roberto Ierusalimschy | 2013-05-26 | 1 | -69/+1 | |
| | ||||||
* | removed 'IEEE tricks' (should not be needed in Lua with integers) | Roberto Ierusalimschy | 2013-05-23 | 1 | -56/+1 | |
| | ||||||
* | 'tonumber' now works with integers too | Roberto Ierusalimschy | 2013-05-16 | 1 | -10/+8 | |
| | ||||||
* | added patch to last bug | Roberto Ierusalimschy | 2013-05-16 | 1 | -2/+71 | |
| | ||||||
* | new API function 'lua_cvtonum' to convert a value (number or string) | Roberto Ierusalimschy | 2013-05-14 | 2 | -2/+26 | |
| | | | | | to a number, following the rules of the language to create integers or floats | |||||
* | 'luaO_str2int' more generic: accepts white spaces around the numeral | Roberto Ierusalimschy | 2013-05-14 | 3 | -15/+27 | |
| | | | | and handles signal | |||||
* | new read format "*i" for reading integers | Roberto Ierusalimschy | 2013-05-14 | 1 | -1/+17 | |
| | ||||||
* | uses integers for time | Roberto Ierusalimschy | 2013-05-14 | 1 | -5/+5 | |
| | ||||||
* | bug: Wrong error message in some short-cut expressions | Roberto Ierusalimschy | 2013-05-13 | 1 | -2/+18 | |
| | ||||||
* | 'pushnum' pushes a "number" (float) + new C instruction 'pushint' | Roberto Ierusalimschy | 2013-05-07 | 1 | -1/+4 | |
| | ||||||
* | new function 'math.numbits' (not a final decision) | Roberto Ierusalimschy | 2013-05-06 | 1 | -1/+15 | |
| | ||||||
* | correct way to avoid compile-time errors in integer divisions | Roberto Ierusalimschy | 2013-05-06 | 1 | -4/+7 | |
| | ||||||
* | correct error message for conversion errors from float to int | Roberto Ierusalimschy | 2013-05-06 | 3 | -12/+26 | |
| | ||||||
* | bug: Wrong assert when reporting concatenation errors. | Roberto Ierusalimschy | 2013-05-06 | 1 | -2/+25 | |
| | ||||||
* | macro 'nvalue' removed (direct conversion from integer to double, | Roberto Ierusalimschy | 2013-05-06 | 1 | -4/+1 | |
| | | | | without an intermediate variable, can cause "excessive precision" | |||||
* | macro 'nvalue' removed + cast to void added to avoid warnings | Roberto Ierusalimschy | 2013-05-06 | 1 | -5/+8 | |
| | | | | with 'clang' | |||||
* | new function 'math.isfloat' | Roberto Ierusalimschy | 2013-05-02 | 1 | -1/+8 | |
| | ||||||
* | stack overflow in vararg functions + garbage collector in recursive loops | Roberto Ierusalimschy | 2013-05-02 | 1 | -7/+70 | |
| | ||||||
* | constant folding and API arithmetic with integers | Roberto Ierusalimschy | 2013-05-02 | 4 | -31/+83 | |
| |