diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1001,7 +1001,7 @@ static int rawfinishnodeset (const TValue *slot, TValue *val) { | |||
1001 | int luaH_psetint (Table *t, lua_Integer key, TValue *val) { | 1001 | int luaH_psetint (Table *t, lua_Integer key, TValue *val) { |
1002 | if (keyinarray(t, key)) { | 1002 | if (keyinarray(t, key)) { |
1003 | lu_byte *tag = getArrTag(t, key - 1); | 1003 | lu_byte *tag = getArrTag(t, key - 1); |
1004 | if (!tagisempty(*tag)) { | 1004 | if (!tagisempty(*tag) || checknoTM(t->metatable, TM_NEWINDEX)) { |
1005 | fval2arr(t, key, tag, val); | 1005 | fval2arr(t, key, tag, val); |
1006 | return HOK; /* success */ | 1006 | return HOK; /* success */ |
1007 | } | 1007 | } |