diff --git a/src/kernel/memory.cpp b/src/kernel/memory.cpp index 5922cddd7..d73a043c7 100644 --- a/src/kernel/memory.cpp +++ b/src/kernel/memory.cpp @@ -3804,8 +3804,8 @@ int KYTY_SYSV_ABI KernelBatchMap2(KernelBatchMapEntry* entries, int num_entries, LOGF("\t [%d] start = %p, offset = 0x%016" PRIx64 ", length = 0x%016" PRIx64 ", prot = 0x%02" PRIx32 ", type = 0x%02" PRIx32 ", op = %d\n", i, entry->start, entry->offset, entry->length, - static_cast(static_cast(entry->protection)), - static_cast(static_cast(entry->type)), entry->operation); + static_cast(entry->protection), static_cast(entry->type), + entry->operation); if (entry->length == 0 || entry->operation < MAP_OP_MAP_DIRECT || entry->operation > MAP_OP_TYPE_PROTECT) { diff --git a/src/kernel/memory.h b/src/kernel/memory.h index dd0c28a55..d667e008e 100644 --- a/src/kernel/memory.h +++ b/src/kernel/memory.h @@ -47,13 +47,13 @@ struct VirtualQueryInfo { static_assert(sizeof(VirtualQueryInfo) == 72, "VirtualQueryInfo struct size is incorrect"); struct KernelBatchMapEntry { - void* start; - uint64_t offset; - uint64_t length; - char protection; - char type; - int16_t reserved; - int32_t operation; + void* start; + uint64_t offset; + uint64_t length; + unsigned char protection; + unsigned char type; + int16_t reserved; + int32_t operation; }; static_assert(sizeof(KernelBatchMapEntry) == 32, "KernelBatchMapEntry struct size is incorrect");