fix build on Visual Studio 2013 and earlier

This commit is contained in:
Tomoaki Teshima 2017-09-19 19:08:23 +09:00
parent a391871cce
commit 48c4bea57c

View File

@ -72,7 +72,7 @@ Mat blobFromNPY(const std::string& path)
ifs.ignore(1); // Skip major version byte.
ifs.ignore(1); // Skip minor version byte.
uint16_t headerSize;
unsigned short headerSize;
ifs.read((char*)&headerSize, sizeof(headerSize));
std::string header(headerSize, '*');