layers: Fix 32-bit Windows build
authorDustin Graves <dustin@lunarg.com>
Wed, 6 Apr 2016 22:47:10 +0000 (16:47 -0600)
committerDustin Graves <dustin@lunarg.com>
Wed, 6 Apr 2016 22:47:10 +0000 (16:47 -0600)
Change reinterpret_cast<uint64_t> to reinterpret_cast<uint64_t&>.

Change-Id: I87b8479df6ba7f93b922bab11edbbf6c4fbfe7f6

layers/core_validation.cpp

index 600c784..a78e54a 100644 (file)
@@ -10196,7 +10196,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkBindImageMemory(VkDevice device, VkImage image,
     auto image_node = dev_data->imageMap.find(image);
     if (image_node != dev_data->imageMap.end()) {
         // Track objects tied to memory
-        uint64_t image_handle = reinterpret_cast<uint64_t>(image);
+        uint64_t image_handle = reinterpret_cast<uint64_t&>(image);
         skipCall = set_mem_binding(dev_data, mem, image_handle, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, "vkBindImageMemory");
         VkMemoryRequirements memRequirements;
         loader_platform_thread_unlock_mutex(&globalLock);