diff options
Diffstat (limited to '')
| -rw-r--r-- | ltable.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 1.58 2000/10/26 12:47:05 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.59 2000/11/24 17:39:56 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 | */ |
| @@ -81,7 +81,7 @@ static const TObject *luaH_getany (lua_State *L, const Hash *t, | |||
| 81 | 81 | ||
| 82 | 82 | ||
| 83 | /* specialized version for numbers */ | 83 | /* specialized version for numbers */ |
| 84 | const TObject *luaH_getnum (const Hash *t, Number key) { | 84 | const TObject *luaH_getnum (const Hash *t, lua_Number key) { |
| 85 | Node *n = &t->node[(luint32)(lint32)key&(t->size-1)]; | 85 | Node *n = &t->node[(luint32)(lint32)key&(t->size-1)]; |
| 86 | do { | 86 | do { |
| 87 | if (ttype(&n->key) == LUA_TNUMBER && nvalue(&n->key) == key) | 87 | if (ttype(&n->key) == LUA_TNUMBER && nvalue(&n->key) == key) |
| @@ -290,7 +290,7 @@ TObject *luaH_setint (lua_State *L, Hash *t, int key) { | |||
| 290 | } | 290 | } |
| 291 | 291 | ||
| 292 | 292 | ||
| 293 | void luaH_setstrnum (lua_State *L, Hash *t, TString *key, Number val) { | 293 | void luaH_setstrnum (lua_State *L, Hash *t, TString *key, lua_Number val) { |
| 294 | TObject *value, index; | 294 | TObject *value, index; |
| 295 | ttype(&index) = LUA_TSTRING; | 295 | ttype(&index) = LUA_TSTRING; |
| 296 | tsvalue(&index) = key; | 296 | tsvalue(&index) = key; |
