Skip to content

Commit f681a60

Browse files
Oleksandr Motsakmohamed-barakat
authored andcommitted
FIX: another Frank's bug: "A=p_Mult_q(A,A,...)" - never works!
1 parent bb6adff commit f681a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpolys/polys/ext_fields/algext.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ void naPower(number a, int exp, number *b, const coeffs cf)
387387
expAbs = expAbs / 2;
388388
if (expAbs != 0)
389389
{
390-
factor = p_Mult_q(factor, factor, naRing);
390+
factor = p_Mult_q(factor, p_Copy(factor, naRing), naRing);
391391
heuristicReduce(factor, naMinpoly, cf);
392392
}
393393
}

0 commit comments

Comments
 (0)