From cd93dab966b1e21d0ca62207d9307ce93910df46 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Thu, 30 Mar 2017 20:33:50 +0200 Subject: [PATCH] Fix all warnings in imagedata.cc --- rtengine/imagedata.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/imagedata.cc b/rtengine/imagedata.cc index fa3651571..de5988d9b 100644 --- a/rtengine/imagedata.cc +++ b/rtengine/imagedata.cc @@ -331,7 +331,7 @@ void ImageData::extractInfo () if (mnote->getTag ("LensData")) { std::string ldata = mnote->getTag ("LensData")->valueToString (); - int pos; + size_t pos; if (ldata.size() > 10 && (pos = ldata.find ("Lens = ")) != Glib::ustring::npos) { lens = ldata.substr (pos + 7); @@ -339,7 +339,7 @@ void ImageData::extractInfo () if (lens.compare (0, 7, "Unknown")) { lensOk = true; } else { - int pos = lens.find("$FL$"); // is there a placeholder for focallength? + size_t pos = lens.find("$FL$"); // is there a placeholder for focallength? if(pos != Glib::ustring::npos) { // then fill in focallength lens = lens.replace(pos, 4, exif->getTag ("FocalLength")->valueToString ());