Fix double promotion in target rtexif
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user