From 0282ca061afc583037c02e4a8629ba2ca00dc2b0 Mon Sep 17 00:00:00 2001 From: Tristan Cormier Date: Sat, 23 Aug 2025 10:08:01 -0400 Subject: [PATCH 1/3] fix(build): include missing size_t definition in MD5.hpp --- common/MD5.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/MD5.hpp b/common/MD5.hpp index fdc1277..4551f7d 100644 --- a/common/MD5.hpp +++ b/common/MD5.hpp @@ -1,6 +1,7 @@ #ifndef COMMON_MD5_HPP #define COMMON_MD5_HPP +#include #include typedef struct { From 5127106d3c08b8a4827fb845fab31f7091965c85 Mon Sep 17 00:00:00 2001 From: Tristan Cormier Date: Sat, 23 Aug 2025 10:14:59 -0400 Subject: [PATCH 2/3] fix(build): narrowing conversions in CObjectHeap::Ptr --- common/objectalloc/CObjectHeap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/objectalloc/CObjectHeap.cpp b/common/objectalloc/CObjectHeap.cpp index 6e4b9c8..b6a5211 100644 --- a/common/objectalloc/CObjectHeap.cpp +++ b/common/objectalloc/CObjectHeap.cpp @@ -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((index >> 24) & 0xFF), + static_cast((index >> 16) & 0xFF), + static_cast((index >> 8) & 0xFF), + static_cast(index & 0xFF) }; if (isprint(bytes[0]) From d1ea955ff19bde84db66429c643d99c143ca2544 Mon Sep 17 00:00:00 2001 From: Tristan Cormier Date: Sat, 23 Aug 2025 10:16:20 -0400 Subject: [PATCH 3/3] fix(build): narrowing conversions in CObjectHeap::Delete --- common/objectalloc/CObjectHeap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/objectalloc/CObjectHeap.cpp b/common/objectalloc/CObjectHeap.cpp index b6a5211..f72bc39 100644 --- a/common/objectalloc/CObjectHeap.cpp +++ b/common/objectalloc/CObjectHeap.cpp @@ -107,10 +107,10 @@ void CObjectHeap::Delete(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((index >> 24) & 0xFF), + static_cast((index >> 16) & 0xFF), + static_cast((index >> 8) & 0xFF), + static_cast(index & 0xFF) }; if (isprint(bytes[0]) && isprint(bytes[1]) && isprint(bytes[2]) && isprint(bytes[3])) {