[Mathlib-commitlog] SF.net SVN: mathlib:[829] JMathLib/trunk/src/jmathlib/core/tokens/ UnaryOperato
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-02-03 22:15:56
|
Revision: 829
http://mathlib.svn.sourceforge.net/mathlib/?rev=829&view=rev
Author: st_mueller
Date: 2009-02-03 22:15:48 +0000 (Tue, 03 Feb 2009)
Log Message:
-----------
bugfix for a++ and a--
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/tokens/UnaryOperatorToken.java
Modified: JMathLib/trunk/src/jmathlib/core/tokens/UnaryOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/tokens/UnaryOperatorToken.java 2009-02-03 22:15:28 UTC (rev 828)
+++ JMathLib/trunk/src/jmathlib/core/tokens/UnaryOperatorToken.java 2009-02-03 22:15:48 UTC (rev 829)
@@ -61,6 +61,8 @@
String variable = ((VariableToken)operand).getName();
//getVariables().getVariable(variable).assign(op);
globals.getVariable(variable).assign(op);
+
+ return op;
}
else if(operand instanceof NumberToken)
{
@@ -89,6 +91,8 @@
String variable = ((VariableToken)operand).getName();
//getVariables().getVariable(variable).assign(op);
globals.getVariable(variable).assign(op);
+
+ return op;
}
else if(operand instanceof NumberToken)
{
@@ -106,12 +110,7 @@
}
}
- //if(result == null)
- //{
- // //return origional expression
- // result = new Expression(this, operand);
- //}
- return result;
+ return result;
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|