revert changes that are affecting to VS

This commit is contained in:
Luis Díaz Más 2021-04-18 16:25:50 +02:00
parent de4d43d4d1
commit 0a1bf46a1c
4 changed files with 6 additions and 6 deletions

View File

@ -189,7 +189,7 @@ namespace Exiv2
long BmffImage::boxHandler(std::ostream& out /* = std::cout*/ , Exiv2::PrintStructureOption option /* = kpsNone */,int depth /* =0 */)
{
long result = (long)io_->size();
long address = io_->tell();
long address = (long)io_->tell();
// never visit a box twice!
if ( depth == 0 ) visits_.clear();
if (visits_.find(address) != visits_.end() || visits_.size() > visits_max_) {

View File

@ -61,10 +61,10 @@ namespace Exiv2
{
std::stringstream hexOutput;
unsigned long tl = ((size / 16) * 16);
unsigned long tl_offset = (size - tl);
unsigned long tl = (unsigned long)((size / 16) * 16);
unsigned long tl_offset = (unsigned long)(size - tl);
for (unsigned long loop = 0; loop < size; loop++) {
for (unsigned long loop = 0; loop < (unsigned long)size; loop++) {
if (data[loop] < 16) {
hexOutput << "0";
}

View File

@ -277,7 +277,7 @@ namespace Exiv2 {
long pos = sizeFront;
while (0 == Photoshop::locateIptcIrb(pPsData + pos, sizePsData - pos,
&record, &sizeHdr, &sizeIptc)) {
const long newPos = record - pPsData;
const long newPos = static_cast<long>(record - pPsData);
// Copy data up to the IPTC IRB
if (newPos > pos) {
append(psBlob, pPsData + pos, newPos - pos);

View File

@ -397,7 +397,7 @@ namespace Exiv2 {
std::string::size_type idx = xmpPacket.find_first_of('<');
if (idx != std::string::npos && idx > 0) {
#ifndef SUPPRESS_WARNINGS
EXV_WARNING << "Removing " << idx
EXV_WARNING << "Removing " << static_cast<unsigned long>(idx)
<< " characters from the beginning of the XMP packet\n";
#endif
xmpPacket = xmpPacket.substr(idx);