Fix compilation warnings

This commit is contained in:
Wojtek Figat
2025-06-05 18:32:36 +02:00
parent f462a2187f
commit 0670c0bbd3
2 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ struct GroupNameBuffer
char prev = 0;
for (int32 i = 0; i < max && dst < ARRAY_COUNT(Buffer) - 2; i++)
{
char cur = str[i];
char cur = (char)str[i];
if (autoFormat && StringUtils::IsUpper(cur) && StringUtils::IsLower(prev))
{
Ansi[dst] = '/';
@@ -422,7 +422,7 @@ void ProfilerMemory::OnMemoryAlloc(void* ptr, uint64 size)
// Register pointer
PointerData ptrData;
ptrData.Size = size;
ptrData.Size = (uint32)size;
ptrData.Group = (uint8)stack.Peek();
PointersLocker.Lock();
Pointers[ptr] = ptrData;