fixed warnings

This commit is contained in:
Michiharu Ariza 2018-10-03 18:08:25 -07:00
parent 1aeaee9dfc
commit 3ef358909e
1 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ struct Number
if (is_fixed ())
return u.fixed_val;
else if (is_real ())
return (int32_t)(u.real_val * 65536.0);
return (int32_t)((double)u.real_val * 65536.0);
else
return (int32_t)(u.int_val << 16);
}
@ -233,7 +233,7 @@ struct Number
if (is_real ())
return u.real_val;
if (is_fixed ())
return u.fixed_val / 65536.0;
return (float)((double)u.fixed_val / 65536.0);
else
return (float)u.int_val;
}