Mercurial Hosting > luan
diff core/src/luan/modules/BinaryLuan.java @ 646:cdc70de628b5
simplify LuanException
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 19:58:39 -0600 |
parents | 4723d22062ce |
children |
line wrap: on
line diff
--- a/core/src/luan/modules/BinaryLuan.java Tue Mar 29 18:09:51 2016 -0600 +++ b/core/src/luan/modules/BinaryLuan.java Tue Mar 29 19:58:39 2016 -0600 @@ -28,8 +28,8 @@ return i==null ? dflt : end(binary,i); } - @LuanMethod public static Byte[] byte_(LuanState luan,byte[] binary,Integer i,Integer j) throws LuanException { - Utils.checkNotNull(luan,binary); + @LuanMethod public static Byte[] byte_(byte[] binary,Integer i,Integer j) throws LuanException { + Utils.checkNotNull(binary); int start = start(binary,i,1); int end = end(binary,j,start+1); Byte[] bytes = new Byte[end-start];