diff options
| author | Michael Mc Donnell <michael@mcdonnell.dk> | 2016-04-03 14:47:51 -0700 |
|---|---|---|
| committer | Dustin Graves <dustin@lunarg.com> | 2016-04-04 15:06:31 -0600 |
| commit | 1968b5ff0ebb9a6e6f6d2afc157a94f610c9bea1 (patch) | |
| tree | 61c1f36e0ab3f446640f38c0eb062c4b6ef5835d /layers/threading.cpp | |
| parent | d39940e4551ac55c3eaf1f23ceb3642d60d962bb (diff) | |
| download | usermoji-1968b5ff0ebb9a6e6f6d2afc157a94f610c9bea1.tar.xz | |
layers: Fix 7 signed/unsigned comparison warnings on VS2015
Diffstat (limited to 'layers/threading.cpp')
| -rw-r--r-- | layers/threading.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/threading.cpp b/layers/threading.cpp index a75bcdc5..51381848 100644 --- a/layers/threading.cpp +++ b/layers/threading.cpp @@ -310,7 +310,7 @@ vkAllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pAl // Record mapping from command buffer to command pool if (VK_SUCCESS == result) { - for (int index = 0; index < pAllocateInfo->commandBufferCount; index++) { + for (uint32_t index = 0; index < pAllocateInfo->commandBufferCount; index++) { loader_platform_thread_lock_mutex(&threadingLock); command_pool_map[pCommandBuffers[index]] = pAllocateInfo->commandPool; loader_platform_thread_unlock_mutex(&threadingLock); @@ -328,14 +328,14 @@ void VKAPI_CALL vkFreeCommandBuffers(VkDevice device, VkCommandPool commandPool, const bool lockCommandPool = false; // pool is already directly locked startReadObject(my_data, device); startWriteObject(my_data, commandPool); - for (int index = 0; index < commandBufferCount; index++) { + for (uint32_t index = 0; index < commandBufferCount; index++) { startWriteObject(my_data, pCommandBuffers[index], lockCommandPool); } pTable->FreeCommandBuffers(device, commandPool, commandBufferCount, pCommandBuffers); finishReadObject(my_data, device); finishWriteObject(my_data, commandPool); - for (int index = 0; index < commandBufferCount; index++) { + for (uint32_t index = 0; index < commandBufferCount; index++) { finishWriteObject(my_data, pCommandBuffers[index], lockCommandPool); loader_platform_thread_lock_mutex(&threadingLock); command_pool_map.erase(pCommandBuffers[index]); |
