/[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 3791 by schoenebeck, Sun Feb 16 11:31:46 2020 UTC revision 3792 by schoenebeck, Mon Jun 15 15:26:10 2020 UTC
# Line 1046  IntArrayVariable::IntArrayVariable(Parse Line 1046  IntArrayVariable::IntArrayVariable(Parse
1046          if (expr) {          if (expr) {
1047              this->values[i] = expr->evalInt();              this->values[i] = expr->evalInt();
1048              this->unitFactors[i] = expr->unitFactor();              this->unitFactors[i] = expr->unitFactor();
1049            } else {
1050                this->values[i] = 0;
1051                this->unitFactors[i] = VM_NO_FACTOR;
1052          }          }
1053      }      }
1054        for (vmint i = values->argsCount(); i < size; ++i) {
1055            this->values[i] = 0;
1056            this->unitFactors[i] = VM_NO_FACTOR;
1057        }
1058  }  }
1059    
1060  IntArrayVariable::IntArrayVariable(ParserContext* ctx, bool bConst) :  IntArrayVariable::IntArrayVariable(ParserContext* ctx, bool bConst) :
# Line 1138  RealArrayVariable::RealArrayVariable(Par Line 1145  RealArrayVariable::RealArrayVariable(Par
1145          if (expr) {          if (expr) {
1146              this->values[i] = expr->evalReal();              this->values[i] = expr->evalReal();
1147              this->unitFactors[i] = expr->unitFactor();              this->unitFactors[i] = expr->unitFactor();
1148            } else {
1149                this->values[i] = (vmfloat) 0;
1150                this->unitFactors[i] = VM_NO_FACTOR;
1151          }          }
1152      }      }
1153        for (vmint i = values->argsCount(); i < size; ++i) {
1154            this->values[i] = (vmfloat) 0;
1155            this->unitFactors[i] = VM_NO_FACTOR;
1156        }
1157  }  }
1158    
1159  RealArrayVariable::RealArrayVariable(ParserContext* ctx, bool bConst) :  RealArrayVariable::RealArrayVariable(ParserContext* ctx, bool bConst) :

Legend:
Removed from v.3791  
changed lines
  Added in v.3792

  ViewVC Help
Powered by ViewVC