mirror of
https://github.com/hasherezade/bearparser
synced 2026-06-08 14:32:38 +00:00
[REFACT] Cleaned printed types by explicit static cast
This commit is contained in:
@@ -86,7 +86,11 @@ offset_t Executable::toRaw(offset_t offset, addr_type aT, bool allowExceptions)
|
||||
if (offset == INVALID_ADDR) return INVALID_ADDR;
|
||||
|
||||
if (this->isValidAddr(offset, aT) == false) {
|
||||
Logger::append(Logger::ERROR, "Address out of bounds: offset = %lX addrType = %d", offset, aT);
|
||||
Logger::append(Logger::ERROR,
|
||||
"Address out of bounds: offset = %llX addrType = %u",
|
||||
static_cast<unsigned long long>(offset),
|
||||
static_cast<unsigned int>(aT)
|
||||
);
|
||||
if (allowExceptions) throw CustomException("Address out of bounds!");
|
||||
return INVALID_ADDR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user