提交 3ef35890 编写于 作者: M Michiharu Ariza

fixed warnings

上级 1aeaee9d
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册