This commit is contained in:
parent
daa567a395
commit
a9404154bc
@ -361,7 +361,7 @@ namespace Exiv2
|
||||
|
||||
const size_t restore = io.tell();
|
||||
io.seek(offset, BasicIo::beg); // position
|
||||
std::vector<byte> bytes(count) ; // allocate memory
|
||||
std::vector<byte> 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<long>(count));
|
||||
io.seek(restore, BasicIo::beg);
|
||||
@ -382,7 +382,7 @@ namespace Exiv2
|
||||
if ( ::strcmp("Nikon",chars) == 0 )
|
||||
{
|
||||
// tag is an embedded tiff
|
||||
std::vector<byte> nikon_bytes(count - jump);
|
||||
std::vector<byte> 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user