mpi: Do not clear the sign of the mpi_mod result.
authorWerner Koch <wk@gnupg.org>
Thu, 17 Oct 2013 16:07:28 +0000 (18:07 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 17 Oct 2013 16:07:28 +0000 (18:07 +0200)
* mpi/mpi-mod.c (_gcry_mpi_mod): Remove sign setting.

Signed-off-by: Werner Koch <wk@gnupg.org>
mpi/mpi-mod.c

index 3d6248b..d48d7f4 100644 (file)
@@ -47,7 +47,6 @@ void
 _gcry_mpi_mod (gcry_mpi_t rem, gcry_mpi_t dividend, gcry_mpi_t divisor)
 {
   _gcry_mpi_fdiv_r (rem, dividend, divisor);
 _gcry_mpi_mod (gcry_mpi_t rem, gcry_mpi_t dividend, gcry_mpi_t divisor)
 {
   _gcry_mpi_fdiv_r (rem, dividend, divisor);
-  rem->sign = 0;
 }
 
 
 }