diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/polynom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/polynom.c b/lib/polynom.c index 2514445..4c789dd 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -192,9 +192,11 @@ polynome ply_soustraction(polynome poly1, polynome poly2) polynome ply_multiplication(polynome poly1, polynome poly2) { /* multiplication de deux polynomes */ - polynome temp = NULL, t, resultat = NULL, r, tempresult = NULL; + polynome temp = NULL, t, resultat = NULL, r, tempresult = NULL, poly2init; + poly2init=poly2; while (poly1) { + poly2=poly2init; while (poly2) { t = ply_constr(rat_multiplication(poly1->coef, poly2->coef), |