changeset 1730:b1b1f9a14928

fix Table.copy
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 01 Sep 2022 13:35:52 -0600
parents 2be5f6c7bcd5
children 842a0e0fd8c5
files src/luan/LuanTable.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 	}