changeset 668:7780cafca27f

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 11 Apr 2016 14:13:52 -0600
parents 08966099aa6d
children e320488819b6
files core/src/luan/impl/Closure.java core/src/luan/impl/LuanParser.java
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/impl/Closure.java	Fri Apr 08 07:00:17 2016 -0600
+++ b/core/src/luan/impl/Closure.java	Mon Apr 11 14:13:52 2016 -0600
@@ -58,7 +58,6 @@
 		for( int i=0; i<n; i++ ) {
 			stack[i] = args[i];
 		}
-		Object returnValues;
 		try {
 			return run(luan);
 		} catch(StackOverflowError e) {
--- a/core/src/luan/impl/LuanParser.java	Fri Apr 08 07:00:17 2016 -0600
+++ b/core/src/luan/impl/LuanParser.java	Mon Apr 11 14:13:52 2016 -0600
@@ -219,8 +219,8 @@
 			Spaces(In.NOTHING);
 			isReturn = Stmt(stmts);
 		}
-		StmtSep(null);
-		Spaces(In.NOTHING);
+		while( StmtSep(null) )
+			Spaces(In.NOTHING);
 		int stackEnd = symbolsSize();
 		popSymbols( stackEnd - stackStart );
 		if( stmts.list.isEmpty() )