summaryrefslogtreecommitdiff
path: root/mpi/mpi-mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpi/mpi-mod.c')
-rw-r--r--mpi/mpi-mod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpi/mpi-mod.c b/mpi/mpi-mod.c
index 7ebfe6dc..795826e7 100644
--- a/mpi/mpi-mod.c
+++ b/mpi/mpi-mod.c
@@ -157,7 +157,7 @@ _gcry_mpi_mod_barrett (gcry_mpi_t r, gcry_mpi_t x, mpi_barrett_t ctx)
r2->nlimbs = k+1;
mpi_sub ( r, r1, r2 );
- if ( mpi_is_neg( r ) )
+ if ( mpi_has_sign ( r ) )
{
if (!ctx->r3)
{