From 8ddb645ad33fec9aa76b31f16259754d77d329da Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Wed, 27 Feb 2013 14:56:33 +0100
Subject: [PATCH] Added conversion to int for a t_uint value to prevent
compiler warnings
On 64-bit platforms t_uint can be larger than int resulting in compiler
warnings on some platforms (MS Visual Studio)
---
library/bignum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library/bignum.c b/library/bignum.c
index f2608c1df..d9845da5d 100644
--- a/library/bignum.c
+++ b/library/bignum.c
@@ -1372,7 +1372,7 @@ static void mpi_montred( mpi *A, const mpi *N, t_uint mm, const mpi *T )
t_uint z = 1;
mpi U;
- U.n = U.s = z;
+ U.n = U.s = (int) z;
U.p = &z;
mpi_montmul( A, &U, N, mm, T );