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

@@ -70,7 +70,7 @@ public:
int a = t->getValue()[ofs];
if (a > 1) {
int i = int (double (powf (2.f, float (a) / 12.f - 5.f)) * 100.f + 0.5f);
int i = static_cast<double>(powf(2.f, float (a) / 12.f - 5.f)) * 100.0 + 0.5;
return i;
} else {
return 0;