summaryrefslogtreecommitdiff
path: root/lib/mini-gmp.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-09-28 00:29:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-09-28 00:37:12 -0700
commita9b29ee4a0ffa4878d67eaf518dbeed098844b9e (patch)
treebbde8d6eae8b3676bb1d9f74d8ce0f6d7016c834 /lib/mini-gmp.c
parentc1eb13b32676b288a3ab3826501caf7bcd376b7f (diff)
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/mini-gmp.c')
-rw-r--r--lib/mini-gmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mini-gmp.c b/lib/mini-gmp.c
index 95f067f82d6..ea037b801dc 100644
--- a/lib/mini-gmp.c
+++ b/lib/mini-gmp.c
@@ -1,8 +1,9 @@
/* mini-gmp, a minimalistic implementation of a GNU GMP subset.
Contributed to the GNU project by Niels Möller
+ Additional functionalities and improvements by Marco Bodrato.
-Copyright 1991-1997, 1999-2021 Free Software Foundation, Inc.
+Copyright 1991-1997, 1999-2022 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -3098,7 +3099,7 @@ mpz_powm (mpz_t r, const mpz_t b, const mpz_t e, const mpz_t m)
if (en == 0)
{
- mpz_set_ui (r, 1);
+ mpz_set_ui (r, mpz_cmpabs_ui (m, 1));
return;
}