Fix double promotion in target rtexif

This commit is contained in:
Ingo Weyrich
2020-01-20 16:02:30 +01:00
parent 6d76670e7d
commit 544a2e5068
6 changed files with 11 additions and 11 deletions

View File

@@ -1174,7 +1174,7 @@ public:
int a = Interpreter::toInt (t, ofs, astype);
if (a > 1) {
int i = int (double (powf (2.f, float (a) / 32.f - 4.f)) * 50.f + 0.5f);
int i = static_cast<double>(powf (2.f, static_cast<float>(a) / 32.f - 4.f)) * 50.0 + 0.5;
return i;
} else {
return 0;