Skip to content

Commit 29c63a7

Browse files
committed
added fix to test js version
1 parent 3974e27 commit 29c63a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ function SolveQuartic() {
131131
r = -3.0 / 256 * sq_A * sq_A + 1.0 / 16 * sq_A * B - 1.0 / 4 * A * C + D;
132132
if (IsZero(r)) {
133133
// no absolute term: y(y^3 + py + q) = 0
134-
output[3] = q;
135-
output[2] = p;
136-
output[1] = 0;
137-
output[0] = 1;
134+
input[3] = q;
135+
input[2] = p;
136+
input[1] = 0;
137+
input[0] = 1;
138138
num = SolveCubic();
139139
}
140140
else {
@@ -434,7 +434,7 @@ function solveArcMoving() {
434434
// There should never be more than 2 positive, real roots.
435435
var numSolutions = 0;
436436
var t;
437-
for (var i = 0; i < 6 && numSolutions < 2; ++i) {
437+
for (var i = 0; i < numTimes && numSolutions < 2; ++i) {
438438
t = output[i];
439439
if (t <= 0)
440440
continue;

0 commit comments

Comments
 (0)