Mercurial Hosting > luan
changeset 114:c599206448b9
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@115 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 26 May 2014 05:39:54 +0000 |
parents | 8c706d6eb5dc |
children | eacf6ce1b47d |
files | src/luan/interp/LenExpr.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/interp/LenExpr.java Mon May 26 05:27:26 2014 +0000 +++ b/src/luan/interp/LenExpr.java Mon May 26 05:39:54 2014 +0000 @@ -20,6 +20,10 @@ String s = (String)o; return s.length(); } + if( o instanceof byte[] ) { + byte[] a = (byte[])o; + return a.length; + } LuanBit bit = luan.bit(se); LuanFunction fn = bit.getHandlerFunction("__len",o); if( fn != null )