##// END OF EJS Templates
Minor fix
Alexandre Leroux -
r1252:072fa3ead1eb
parent child
Show More
@@ -121,7 +121,7 struct MoveOperation : public IFuzzingOperation {
121 121 // Gets the max range defined
122 122 auto maxRange = properties.value(MAX_RANGE_PROPERTY, QVariant::fromValue(INVALID_RANGE))
123 123 .value<SqpRange>();
124 auto variableRange = variable->range();
124 auto variableRange = variableState.m_Range;
125 125
126 126 if (maxRange == INVALID_RANGE || variableRange.m_TStart < maxRange.m_TStart
127 127 || variableRange.m_TEnd > maxRange.m_TEnd) {
@@ -130,7 +130,7 struct MoveOperation : public IFuzzingOperation {
130 130 }
131 131
132 132 // Computes the max delta at which the variable can move, up to the limits of the max range
133 auto deltaMax = m_MaxMoveFun(variable->range(), maxRange);
133 auto deltaMax = m_MaxMoveFun(variableRange, maxRange);
134 134
135 135 // Generates random delta that will be used to move variable
136 136 auto delta = RandomGenerator::instance().generateDouble(0, deltaMax);
General Comments 0
You need to be logged in to leave comments. Login now