From e9b85f93724d8f99fa17448d20f83c001e4fe805 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 28 Nov 2018 10:46:12 +0100 Subject: [PATCH] rename parameter as in prototype --- bn_mp_set_double.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bn_mp_set_double.c b/bn_mp_set_double.c index 6b847a5..54b2d09 100644 --- a/bn_mp_set_double.c +++ b/bn_mp_set_double.c @@ -14,7 +14,7 @@ */ #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; int exp, res; @@ -22,7 +22,7 @@ int mp_set_double(mp_int *a, double d) double dbl; uint64_t bits; } cast; - cast.dbl = d; + cast.dbl = b; exp = (int)(cast.bits >> 52) & 0x7FF; frac = (cast.bits & ((1ULL << 52) - 1)) | (1ULL << 52);