diff src/luan/LuanTable.java @ 1730:b1b1f9a14928

fix Table.copy
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 01 Sep 2022 13:35:52 -0600
parents 8d257d56dc42
children 74f33278344f
line wrap: on
line diff
--- a/src/luan/LuanTable.java	Tue Aug 30 22:00:59 2022 -0600
+++ b/src/luan/LuanTable.java	Thu Sep 01 13:35:52 2022 -0600
@@ -420,7 +420,7 @@
 
 	public LuanTable rawSubList(int from,int to) {
 		LuanTable tbl = new LuanTable();
-		tbl.list = new ArrayList<Object>(list().subList(from-1,to-1));
+		tbl.list = new ArrayList<Object>(list().subList(from-1,to));
 		return tbl;
 	}