Build fails due to the type of size in assembler.cpp:116 being uint64_t rather than ZyanUSize.
[ 42%] Building CXX object CMakeFiles/binprotect.dir/ext/binwrite/assembler/assembler.cpp.o
~/source/repos/binprotect/binprotect/ext/binwrite/assembler/assembler.cpp:118:22: error: no matching function for call to 'ZydisEncoderEncodeInstruction'
118 | const auto status = ZydisEncoderEncodeInstruction(&request_, bytes.data(), &size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/source/repos/binprotect/binprotect/build/_deps/zydis-src/include/Zydis/Encoder.h:411:25: note: candidate function not viable: no known conversion from 'std::uint64_t *' (aka 'unsigned long long *') to 'ZyanUSize *' (aka 'unsigned long *') for 3rd argument
411 | ZYDIS_EXPORT ZyanStatus ZydisEncoderEncodeInstruction(const ZydisEncoderRequest *request,
| ^
412 | void *buffer, ZyanUSize *length);
| ~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/binprotect.dir/ext/binwrite/assembler/assembler.cpp.o] Error 1
make[1]: *** [CMakeFiles/binprotect.dir/all] Error 2
make: *** [all] Error 2```
Build fails due to the type of
sizein assembler.cpp:116 beinguint64_trather thanZyanUSize.