Skip to content

Commit

Permalink
initialise all shc not just real part
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Feb 14, 2024
1 parent 864669e commit 2d75dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Basic/Math/cpoly.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ fprintf(stderr, "ENTRY deg=%d\n", degree);
/* Make a copy of the coefficients */
for (i=0;i<nn;i++) {
pc[i] = opr[i] + I*opi[i];
shc[i] = cmod(pc[i]) + I*cimag(shc[i]);
shc[i] = cmod(pc[i]);
}

/* Scale the polynomial */
Expand Down

0 comments on commit 2d75dde

Please sign in to comment.