diff options
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -156,7 +156,7 @@ static Node *hashint (const Table *t, lua_Integer i) { | |||
| 156 | ** The main computation should be just | 156 | ** The main computation should be just |
| 157 | ** n = frexp(n, &i); return (n * INT_MAX) + i | 157 | ** n = frexp(n, &i); return (n * INT_MAX) + i |
| 158 | ** but there are some numerical subtleties. | 158 | ** but there are some numerical subtleties. |
| 159 | ** In a two-complement representation, INT_MAX does not has an exact | 159 | ** In a two-complement representation, INT_MAX may not have an exact |
| 160 | ** representation as a float, but INT_MIN does; because the absolute | 160 | ** representation as a float, but INT_MIN does; because the absolute |
| 161 | ** value of 'frexp' is smaller than 1 (unless 'n' is inf/NaN), the | 161 | ** value of 'frexp' is smaller than 1 (unless 'n' is inf/NaN), the |
| 162 | ** absolute value of the product 'frexp * -INT_MIN' is smaller or equal | 162 | ** absolute value of the product 'frexp * -INT_MIN' is smaller or equal |
