[Mathlib-commitlog] SF.net SVN: mathlib:[628] JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ system/
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-05 15:14:39
|
Revision: 628
http://mathlib.svn.sourceforge.net/mathlib/?rev=628&view=rev
Author: st_mueller
Date: 2009-01-05 15:14:35 +0000 (Mon, 05 Jan 2009)
Log Message:
-----------
changed handling of global variables
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/foreach.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/foreach.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/foreach.java 2009-01-05 15:14:25 UTC (rev 627)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/foreach.java 2009-01-05 15:14:35 UTC (rev 628)
@@ -24,10 +24,10 @@
int matSizeX = matrix.getSizeX();
int matSizeY = matrix.getSizeY();
- if(operands[1] instanceof CharToken && operands[2] instanceof CharToken)
+ if((operands[1] instanceof CharToken) && (operands[2] instanceof CharToken))
{
//create a variable with the correct name
- Variable var = getVariables().createVariable(((CharToken)operands[1]).toString());
+ Variable var = createVariable(((CharToken)operands[1]).toString());
String expression = ((CharToken)operands[2]).toString();
//parse the expression
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|