fix some warnings

This commit is contained in:
2020-09-08 15:13:05 +03:00
parent 3d5a86e215
commit d96c99f79d
11 changed files with 39 additions and 22 deletions

View File

@@ -612,7 +612,6 @@ int QPIEvaluator::parse(const QString & string, int offset) {
QChar cc;
QPIEvaluatorTypes::Element ce;
QPIEvaluatorTypes::Function cfunc;
QPIEvaluatorTypes::Operation coper;
QString sbrackets, carg;
QVector<int> args, atmp;
QVector<QPIEvaluatorTypes::Operation> opers;
@@ -956,7 +955,7 @@ inline void QPIEvaluator::execFunction(const QPIEvaluatorTypes::Instruction & ci
tmpvars[oi].value = value(ci.operators[0]) * complexd(rad2deg_qpie, 0.);
break;
case QPIEvaluatorTypes::bfRandom:
tmp = static_cast<double>(qrand()) / RAND_MAX;
tmp = static_cast<double>(rand()) / RAND_MAX;
stmp = value(ci.operators[1]) - value(ci.operators[0]);
tmpvars[oi].value = value(ci.operators[0]) + tmp * stmp;
break;