diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.115 2015/11/03 18:10:44 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.116 2015/11/03 18:35:21 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -85,7 +85,7 @@ static const Node dummynode_ = { | |||
85 | /* | 85 | /* |
86 | ** Hash for floating-point numbers. | 86 | ** Hash for floating-point numbers. |
87 | ** The main computation should be just | 87 | ** The main computation should be just |
88 | ** n = frepx(n, &i); return (n * INT_MAX) + i | 88 | ** n = frexp(n, &i); return (n * INT_MAX) + i |
89 | ** but there are some numerical subtleties. | 89 | ** but there are some numerical subtleties. |
90 | ** In a two-complement representation, INT_MAX does not has an exact | 90 | ** In a two-complement representation, INT_MAX does not has an exact |
91 | ** representation as a float, but INT_MIN does; because the absolute | 91 | ** representation as a float, but INT_MIN does; because the absolute |