Sync to github.com/google/piex at commit 0bce6433c1

This commit is contained in:
Yujie Qin
2016-01-25 13:12:07 +01:00
parent 3eaa83178e
commit afc6ebdcba
2 changed files with 2 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ bool TiffDirectory::GetOffsetAndLength(const Tag tag, const Type type,
return false;
}
*offset = directory_entry->offset;
*length = directory_entry->value.size();
*length = static_cast<std::uint32_t>(directory_entry->value.size());
return true;
}

View File

@@ -133,7 +133,7 @@ void FillGpsPreviewImageData(const TiffDirectory& gps_directory,
return;
}
constexpr size_t kGpsDateStampSize = 11;
const size_t kGpsDateStampSize = 11;
if (!gps_directory.Get(kGpsTagDateStamp,
&preview_image_data->gps.date_stamp)) {
return;