diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-05 16:20:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-05 16:20:51 -0200 |
commit | e2498e079e4636217e89f0b28844c4b5df4f8793 (patch) | |
tree | da82e007f0e8153985323c2bdb190811f79e0c57 /lvm.c | |
parent | 65726f3e2e226f6a350a5dba643c13c8edd34965 (diff) | |
download | lua-e2498e079e4636217e89f0b28844c4b5df4f8793.tar.gz lua-e2498e079e4636217e89f0b28844c4b5df4f8793.tar.bz2 lua-e2498e079e4636217e89f0b28844c4b5df4f8793.zip |
change in hash algorithm so that it does not need empty slot
(tables can be 100% full)
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.18 2004/12/03 20:35:33 roberto Exp $ | 2 | ** $Id: lvm.c,v 2.19 2005/01/04 15:55:12 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -462,7 +462,7 @@ StkId luaV_execute (lua_State *L, int nexeccalls) { | |||
462 | case OP_NEWTABLE: { | 462 | case OP_NEWTABLE: { |
463 | int b = GETARG_B(i); | 463 | int b = GETARG_B(i); |
464 | int c = GETARG_C(i); | 464 | int c = GETARG_C(i); |
465 | sethvalue(L, ra, luaH_new(L, luaO_fb2int(b), luaO_fb2int(c) - 1)); | 465 | sethvalue(L, ra, luaH_new(L, luaO_fb2int(b), luaO_fb2int(c))); |
466 | L->ci->savedpc = pc; | 466 | L->ci->savedpc = pc; |
467 | luaC_checkGC(L); /***/ | 467 | luaC_checkGC(L); /***/ |
468 | base = L->base; | 468 | base = L->base; |