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