Resolve compilation warnings (#15)

This commit is contained in:
Marcos Vinicius 2023-07-10 12:48:20 -03:00 committed by GitHub
parent 6b7474e34e
commit 51150f4b07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -89,7 +89,8 @@ struct BridgePusher {
header->vmAddress = address;
header->vmSize = size;
std::strncpy(header->vmName, name, sizeof(header->vmName));
header->flags |= static_cast<std::uint64_t>(BridgeFlags::VmConfigured);
header->flags =
header->flags | static_cast<std::uint64_t>(BridgeFlags::VmConfigured);
}
void sendMemoryProtect(std::uint64_t address, std::uint64_t size,