diff --git a/src/bigtiffimage.cpp b/src/bigtiffimage.cpp index 2ada4fb6..cb4ace63 100644 --- a/src/bigtiffimage.cpp +++ b/src/bigtiffimage.cpp @@ -361,7 +361,7 @@ namespace Exiv2 const size_t restore = io.tell(); io.seek(offset, BasicIo::beg); // position - std::vector bytes(count) ; // allocate memory + std::vector bytes((size_t)count) ; // allocate memory // TODO: once we have C++11 use bytes.data() const long read_bytes = io.read(&bytes[0], static_cast(count)); io.seek(restore, BasicIo::beg); @@ -382,7 +382,7 @@ namespace Exiv2 if ( ::strcmp("Nikon",chars) == 0 ) { // tag is an embedded tiff - std::vector nikon_bytes(count - jump); + std::vector nikon_bytes((size_t)(count - jump)); io.read(&nikon_bytes.at(0), (long)nikon_bytes.size()); MemIo memIo(&nikon_bytes.at(0), (long)count - jump); // create a file