From 1fa0d684bc04ad7217d3279f3dcf4cca67fa96aa Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 9 Jan 2019 16:00:54 +0000 Subject: [PATCH] corrected a minor coding flaw in number.c --- lib/number.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/number.c b/lib/number.c index 1753f8e..14ce5c9 100644 --- a/lib/number.c +++ b/lib/number.c @@ -50,7 +50,7 @@ static hcl_ooi_t equalize_scale (hcl_t* hcl, hcl_oop_t* x, hcl_oop_t* y) ys = 0; yv = *y; - if (HCL_IS_FPDEC(hcl, *y)) + if (HCL_IS_FPDEC(hcl, yv)) { ys = HCL_OOP_TO_SMOOI(((hcl_oop_fpdec_t)yv)->scale); yv = ((hcl_oop_fpdec_t)yv)->value;