mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
fix(build): narrowing conversions in CObjectHeap::Ptr
This commit is contained in:
parent
0282ca061a
commit
5127106d3c
1 changed files with 4 additions and 4 deletions
|
|
@ -69,10 +69,10 @@ void* CObjectHeap::Ptr(uint32_t index, uint32_t objSize, uint32_t heapObjects) {
|
|||
if (index >= heapObjects) {
|
||||
const char* format = "\"%s\", %s = %ld (0x%08X)";
|
||||
const uint8_t bytes[4] = {
|
||||
(index >> 24) & 0xFF,
|
||||
(index >> 16) & 0xFF,
|
||||
(index >> 8) & 0xFF,
|
||||
index & 0xFF
|
||||
static_cast<uint8_t>((index >> 24) & 0xFF),
|
||||
static_cast<uint8_t>((index >> 16) & 0xFF),
|
||||
static_cast<uint8_t>((index >> 8) & 0xFF),
|
||||
static_cast<uint8_t>(index & 0xFF)
|
||||
};
|
||||
|
||||
if (isprint(bytes[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue