corrected a minor coding flaw in number.c

This commit is contained in:
hyung-hwan 2019-01-09 16:00:54 +00:00
parent 0011937699
commit 1fa0d684bc

View File

@ -50,7 +50,7 @@ static hcl_ooi_t equalize_scale (hcl_t* hcl, hcl_oop_t* x, hcl_oop_t* y)
ys = 0; ys = 0;
yv = *y; 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); ys = HCL_OOP_TO_SMOOI(((hcl_oop_fpdec_t)yv)->scale);
yv = ((hcl_oop_fpdec_t)yv)->value; yv = ((hcl_oop_fpdec_t)yv)->value;