tweaked previous warning fixes
This commit is contained in:
parent
3ef358909e
commit
0222d57c35
|
@ -223,7 +223,7 @@ struct Number
|
||||||
if (is_fixed ())
|
if (is_fixed ())
|
||||||
return u.fixed_val;
|
return u.fixed_val;
|
||||||
else if (is_real ())
|
else if (is_real ())
|
||||||
return (int32_t)((double)u.real_val * 65536.0);
|
return (int32_t)(u.real_val * 65536.0f);
|
||||||
else
|
else
|
||||||
return (int32_t)(u.int_val << 16);
|
return (int32_t)(u.int_val << 16);
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,7 @@ struct Number
|
||||||
if (is_real ())
|
if (is_real ())
|
||||||
return u.real_val;
|
return u.real_val;
|
||||||
if (is_fixed ())
|
if (is_fixed ())
|
||||||
return (float)((double)u.fixed_val / 65536.0);
|
return u.fixed_val / 65536.0f;
|
||||||
else
|
else
|
||||||
return (float)u.int_val;
|
return (float)u.int_val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue