From 5a2a00ffbaed132267ece61d9a623d76fee229df Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 14 Oct 2014 14:37:17 +0200 Subject: [PATCH] fix compiler warning when compiling with "-mx32" option --- bn_mp_get_long.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bn_mp_get_long.c b/bn_mp_get_long.c index 0bb17ff..08a82f6 100644 --- a/bn_mp_get_long.c +++ b/bn_mp_get_long.c @@ -30,10 +30,12 @@ unsigned long mp_get_long(mp_int * a) /* get most significant digit of result */ res = DIGIT(a,i); - + +#if ULONG_MAX != 0xfffffffful || DIGIT_BIT < 32 while (--i >= 0) { res = (res << DIGIT_BIT) | DIGIT(a,i); } +#endif return res; } #endif