/[svn]/linuxsampler/trunk/src/scriptvm/tree.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2951 by schoenebeck, Fri Jul 15 20:07:47 2016 UTC revision 3034 by schoenebeck, Mon Oct 31 00:05:00 2016 UTC
# Line 359  IntVariable::IntVariable(ParserContext* Line 359  IntVariable::IntVariable(ParserContext*
359    
360  void IntVariable::assign(Expression* expr) {  void IntVariable::assign(Expression* expr) {
361      IntExpr* intExpr = dynamic_cast<IntExpr*>(expr);      IntExpr* intExpr = dynamic_cast<IntExpr*>(expr);
362      if (intExpr)      if (intExpr) {
363          if (polyphonic)          if (polyphonic)
364              context->execContext->polyphonicIntMemory[memPos] = intExpr->evalInt();              context->execContext->polyphonicIntMemory[memPos] = intExpr->evalInt();
365          else          else
366              (*context->globalIntMemory)[memPos] = intExpr->evalInt();              (*context->globalIntMemory)[memPos] = intExpr->evalInt();
367        }
368  }  }
369    
370  int IntVariable::evalInt() {  int IntVariable::evalInt() {

Legend:
Removed from v.2951  
changed lines
  Added in v.3034

  ViewVC Help
Powered by ViewVC