Mercurial Hosting > luan
diff core/src/luan/impl/SetTableEntry.java @ 572:f1601a4ce1aa
fix stack when calling meta-methods
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 12 Jul 2015 21:34:23 -0600 |
parents | e3fb9768dbb3 |
children | 7c3ad6db8ac3 |
line wrap: on
line diff
--- a/core/src/luan/impl/SetTableEntry.java Wed Jul 08 23:10:52 2015 -0600 +++ b/core/src/luan/impl/SetTableEntry.java Sun Jul 12 21:34:23 2015 -0600 @@ -25,12 +25,12 @@ } private void newIndex(LuanStateImpl luan,Object t,Object key,Object value) throws LuanException { + LuanBit bit = luan.bit(el()); if( t instanceof LuanTable ) { LuanTable tbl = (LuanTable)t; - tbl.put(luan,key,value); + tbl.put(bit,key,value); return; } - LuanBit bit = luan.bit(el()); if( t != null && luan.hasJava() ) JavaLuan.__new_index(bit,t,key,value); else