fix compiler warning when compiling with "-mx32" option

This commit is contained in:
Steffen Jaeckel 2014-10-14 14:37:17 +02:00
parent 940bef18cd
commit 5a2a00ffba

View File

@ -31,9 +31,11 @@ unsigned long mp_get_long(mp_int * a)
/* get most significant digit of result */ /* get most significant digit of result */
res = DIGIT(a,i); res = DIGIT(a,i);
#if ULONG_MAX != 0xfffffffful || DIGIT_BIT < 32
while (--i >= 0) { while (--i >= 0) {
res = (res << DIGIT_BIT) | DIGIT(a,i); res = (res << DIGIT_BIT) | DIGIT(a,i);
} }
#endif
return res; return res;
} }
#endif #endif