layers: Fix 32-bit Windows build
authorDustin Graves <dustin@lunarg.com>
Thu, 4 Feb 2016 17:57:00 +0000 (10:57 -0700)
committerDustin Graves <dustin@lunarg.com>
Thu, 4 Feb 2016 18:06:40 +0000 (11:06 -0700)
A reinterpret_cast from a non-dispatch handle to uint64_t was failing on
windows 32-bit where non-dispatch handles are defined as 'typdef uint64_t
object'.  Changed reinterpret_cast to a C-style cast, as is consistent
with the rest of the non-dispatch handle to uint64_t conversions in
draw_state.

layers/draw_state.cpp

index c2c480f..5171109 100644 (file)
@@ -4371,8 +4371,8 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkBeginCommandBuffer(VkCommandBuf
                             skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT, reinterpret_cast<uint64_t>(commandBuffer),
                                                 __LINE__, DRAWSTATE_RENDERPASS_INCOMPATIBLE, "DS",
                                                 "vkBeginCommandBuffer(): Secondary Command Buffer (%p) renderPass (%#" PRIxLEAST64 ") is incompatible w/ framebuffer (%#" PRIxLEAST64
-                                                ") w/ render pass (%#" PRIxLEAST64 ") due to: %s", reinterpret_cast<void*>(commandBuffer), reinterpret_cast<uint64_t>(pInfo->renderPass),
-                                                reinterpret_cast<uint64_t>(pInfo->framebuffer), reinterpret_cast<uint64_t>(fbRP), errorString.c_str());
+                                                ") w/ render pass (%#" PRIxLEAST64 ") due to: %s", reinterpret_cast<void*>(commandBuffer), (uint64_t)(pInfo->renderPass),
+                                                (uint64_t)(pInfo->framebuffer), (uint64_t)(fbRP), errorString.c_str());
                         }
                     }
                 }