ports/graphics/openmvs/files/patch-libs_MVS_DepthMap.cpp
Yuri Victorovich c2a3859c07 graphics/openmvs: Update 2.0.1 -> 2.1.0
Reported by:	portscout
2022-11-30 03:47:59 -08:00

16 lines
693 B
C++

- workarounf for https://github.com/cdcseacave/openMVS/issues/910
--- libs/MVS/DepthMap.cpp.orig 2022-11-30 10:06:45 UTC
+++ libs/MVS/DepthMap.cpp
@@ -2036,9 +2036,9 @@ bool MVS::ImportDepthDataRaw(const String& fileName, S
// read image file name
STATIC_ASSERT(sizeof(String::value_type) == sizeof(char));
uint16_t nFileNameSize;
- fread(&nFileNameSize, sizeof(uint16_t), 1, f);
+ fread((void*)&nFileNameSize, sizeof(uint16_t), 1, f);
imageFileName.resize(nFileNameSize);
- fread(imageFileName.data(), sizeof(char), nFileNameSize, f);
+ fread((void*)imageFileName.data(), sizeof(char), nFileNameSize, f);
// read neighbor IDs
STATIC_ASSERT(sizeof(uint32_t) == sizeof(IIndex));