Skip to content

Commit f792971

Browse files
Minor fixes based on #463
1 parent 29b35ea commit f792971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/vk_mem_alloc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9146,7 +9146,7 @@ bool VmaBlockMetadata_TLSF::CreateAllocationRequest(
91469146

91479147
// Round up to the next block
91489148
VkDeviceSize sizeForNextList = allocSize;
9149-
VkDeviceSize smallSizeStep = VkDeviceSize(SMALL_BUFFER_SIZE / (IsVirtual() ? 1 << SECOND_LEVEL_INDEX : 4));
9149+
VkDeviceSize smallSizeStep = VkDeviceSize(SMALL_BUFFER_SIZE / (IsVirtual() ? 1u << SECOND_LEVEL_INDEX : 4u));
91509150
if (allocSize > SMALL_BUFFER_SIZE)
91519151
{
91529152
sizeForNextList += (1ULL << (VMA_BITSCAN_MSB(allocSize) - SECOND_LEVEL_INDEX));
@@ -10594,6 +10594,7 @@ static void vma_delete_array(VmaAllocator hAllocator, T* ptr, size_t count)
1059410594
#ifndef _VMA_DEVICE_MEMORY_BLOCK_FUNCTIONS
1059510595
VmaDeviceMemoryBlock::VmaDeviceMemoryBlock(VmaAllocator hAllocator)
1059610596
: m_pMetadata(VMA_NULL),
10597+
m_hParentPool(nullptr),
1059710598
m_MemoryTypeIndex(UINT32_MAX),
1059810599
m_Id(0),
1059910600
m_hMemory(VK_NULL_HANDLE),

0 commit comments

Comments
 (0)