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
1 changed files with 3 additions and 1 deletions

View File

@ -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