mirror of
https://github.com/vale981/arb
synced 2025-03-05 09:21:38 -05:00
conrey_pow: fix a potential overflow issue
This commit is contained in:
parent
952ebc446a
commit
121292a276
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,6 @@ acb_dirichlet_conrey_pow(acb_dirichlet_conrey_t c, const acb_dirichlet_group_t G
|
|||
{
|
||||
ulong k;
|
||||
for (k = 0; k < G->num ; k++)
|
||||
c->log[k] = (a->log[k] * n) % G->P[k].phi;
|
||||
c->log[k] = n_mulmod2(a->log[k], n, G->P[k].phi);
|
||||
c->n = nmod_pow_ui(a->n, n, G->mod);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue