comparison core/src/luan/impl/LenExpr.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 b48cfa14ba60
children 7c3ad6db8ac3
comparison
equal deleted inserted replaced
571:cd944b010f25 572:f1601a4ce1aa
26 } 26 }
27 LuanBit bit = luan.bit(el); 27 LuanBit bit = luan.bit(el);
28 if( !(o instanceof LuanTable) ) 28 if( !(o instanceof LuanTable) )
29 throw bit.exception( "attempt to get length of a " + Luan.type(o) + " value" ); 29 throw bit.exception( "attempt to get length of a " + Luan.type(o) + " value" );
30 LuanTable t = (LuanTable)o; 30 LuanTable t = (LuanTable)o;
31 return t.length(luan); 31 return t.length(bit);
32 } 32 }
33 } 33 }