From e87d0d570369fef3f132727969d3a40b9bde6b50 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Sat, 11 Nov 2023 00:26:38 +0100 Subject: [PATCH] Added cast to fix compiler warning. --- glslang/MachineIndependent/PoolAlloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/PoolAlloc.cpp b/glslang/MachineIndependent/PoolAlloc.cpp index 5d7173c9..d9b3c6e9 100644 --- a/glslang/MachineIndependent/PoolAlloc.cpp +++ b/glslang/MachineIndependent/PoolAlloc.cpp @@ -148,7 +148,7 @@ void TAllocation::checkGuardBlock(unsigned char*, unsigned char, const char*) co // We don't print the assert message. It's here just to be helpful. snprintf(assertMsg, maxSize, "PoolAlloc: Damage %s %zu byte allocation at 0x%p\n", - locText, size, data()); + locText, size, static_cast(data())); // @MEWIN - 2023-11-11 - Added cast to fix compiler warning. assert(0 && "PoolAlloc: Damage in guard block"); } }