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) : |
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) : |