From 3150a1028e06d4c433c63b3b1346baefd9385fee Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Sat, 3 Dec 2022 03:20:51 +0000 Subject: [PATCH] Mac compile warning/errors in tests project --- util/test/demos/vk/vk_shader_debug_zoo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/test/demos/vk/vk_shader_debug_zoo.cpp b/util/test/demos/vk/vk_shader_debug_zoo.cpp index 4e0eb28c6..d084d5143 100644 --- a/util/test/demos/vk/vk_shader_debug_zoo.cpp +++ b/util/test/demos/vk/vk_shader_debug_zoo.cpp @@ -3200,7 +3200,7 @@ OpBranch %_bottomlabel offs += 2; } - int32_t val = std::strtol(&test[offs], NULL, base); + int32_t val = (int32_t)std::strtol(&test[offs], NULL, base); int_constants.insert(val); // if it's a hex constant we'll name it in decimal, rename @@ -3230,7 +3230,7 @@ OpBranch %_bottomlabel offs += 2; } - uint32_t val = std::strtoul(&test[offs], NULL, base); + uint32_t val = (uint32_t)std::strtoul(&test[offs], NULL, base); uint_constants.insert(val); // if it's a hex constant we'll name it in decimal, rename