changeset 1505:01e38174d580

minor fix
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 14 May 2020 15:49:45 -0600
parents f443542d8650
children d80395468b4e
files src/luan/modules/StringLuan.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/StringLuan.java	Mon May 11 11:13:16 2020 -0600
+++ b/src/luan/modules/StringLuan.java	Thu May 14 15:49:45 2020 -0600
@@ -31,7 +31,7 @@
 
 	public static Integer[] unicode(String s,Integer i,Integer j) throws LuanException {
 		Utils.checkNotNull(s);
-		int start = start(s,i,1);
+		int start = start(s,i,0);
 		int end = end(s,j,start+1);
 		Integer[] chars = new Integer[end-start];
 		for( int k=0; k<chars.length; k++ ) {