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

@@ -58,7 +58,7 @@ void parseKodakIfdTextualInfo (Tag *textualInfo, Tag* exif_)
// Proback645 may have "Lens" but not "Focal Length"
float flen = atof (val.c_str());
if (flen != 0.0) {
if (flen != 0.f) {
t = new Tag (exif, lookupAttrib (exifAttribs, "FocalLength"));
t->initRational (flen * 32, 32);
exif->replaceTag (t);
@@ -66,7 +66,7 @@ void parseKodakIfdTextualInfo (Tag *textualInfo, Tag* exif_)
} else if (key == "Focal Length") {
float flen = atof (val.c_str());
if (flen != 0.0) {
if (flen != 0.f) {
t = new Tag (exif, lookupAttrib (exifAttribs, "FocalLength"));
t->initRational (flen * 32, 32);
exif->replaceTag (t);
@@ -74,7 +74,7 @@ void parseKodakIfdTextualInfo (Tag *textualInfo, Tag* exif_)
} else if (key == "Aperture") {
float aperture = atof (&val.c_str()[1]);
if (aperture != 0.0) {
if (aperture != 0.f) {
t = new Tag (exif, lookupAttrib (exifAttribs, "FNumber"));
t->initRational ((int) (aperture * 10), 10);
exif->replaceTag (t);