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