Skip to content

Commit 04cda6a

Browse files
committed
fix: wrong computation of d1
1 parent 3ef0a0f commit 04cda6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

factory/facMul.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ CanonicalForm
13471347
mulMod2FLINTFpReci (const CanonicalForm& F, const CanonicalForm& G, const
13481348
CanonicalForm& M)
13491349
{
1350-
int d1= tmax (degree (F, 1), degree (G, 1)) + 1;
1350+
int d1= degree (F, 1) + degree (G, 1) + 1;
13511351
d1 /= 2;
13521352
d1 += 1;
13531353

@@ -1416,7 +1416,7 @@ CanonicalForm
14161416
mulMod2FLINTQReci (const CanonicalForm& F, const CanonicalForm& G, const
14171417
CanonicalForm& M)
14181418
{
1419-
int d1= tmax (degree (F, 1), degree (G, 1)) + 1;
1419+
int d1= degree (F, 1) + degree (G, 1) + 1;
14201420
d1 /= 2;
14211421
d1 += 1;
14221422

0 commit comments

Comments
 (0)