diff src/luan/interp/DivExpr.java @ 31:5cf15507d77e

separate interpreter from interface git-svn-id: https://luan-java.googlecode.com/svn/trunk@32 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 13 Dec 2012 02:50:04 +0000
parents b7d7069fee58
children e51906de0f11
line wrap: on
line diff
--- a/src/luan/interp/DivExpr.java	Fri Dec 07 20:22:19 2012 +0000
+++ b/src/luan/interp/DivExpr.java	Thu Dec 13 02:50:04 2012 +0000
@@ -3,7 +3,6 @@
 import luan.Lua;
 import luan.LuaNumber;
 import luan.LuaException;
-import luan.LuaState;
 
 
 final class DivExpr extends BinaryOpExpr {
@@ -12,7 +11,7 @@
 		super(op1,op2);
 	}
 
-	@Override public Object eval(LuaState lua) throws LuaException {
+	@Override public Object eval(LuaStateImpl lua) throws LuaException {
 		double n1 = Lua.checkNumber(op1.eval(lua)).value();
 		double n2 = Lua.checkNumber(op2.eval(lua)).value();
 		return new LuaNumber( n1 / n2 );