mirror of
https://github.com/opencv/opencv.git
synced 2025-06-28 23:50:58 +08:00
fix build on Visual Studio 2013 and earlier
This commit is contained in:
parent
a391871cce
commit
48c4bea57c
@ -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, '*');
|
||||
|
Loading…
Reference in New Issue
Block a user