rename parameter as in prototype

This commit is contained in:
Francois Perrad 2018-11-28 10:46:12 +01:00
parent 034cd1f444
commit e9b85f9372

View File

@ -14,7 +14,7 @@
*/ */
#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559) #if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559)
int mp_set_double(mp_int *a, double d) int mp_set_double(mp_int *a, double b)
{ {
uint64_t frac; uint64_t frac;
int exp, res; int exp, res;
@ -22,7 +22,7 @@ int mp_set_double(mp_int *a, double d)
double dbl; double dbl;
uint64_t bits; uint64_t bits;
} cast; } cast;
cast.dbl = d; cast.dbl = b;
exp = (int)(cast.bits >> 52) & 0x7FF; exp = (int)(cast.bits >> 52) & 0x7FF;
frac = (cast.bits & ((1ULL << 52) - 1)) | (1ULL << 52); frac = (cast.bits & ((1ULL << 52) - 1)) | (1ULL << 52);