From c0e91fc631ee9c379dea9c9fcb779812f143e31f Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 5 Nov 2024 11:12:53 -0800 Subject: [PATCH] Attempt to fix CodeQL warning --- DirectXTex/DirectXTexSwizzle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DirectXTex/DirectXTexSwizzle.cpp b/DirectXTex/DirectXTexSwizzle.cpp index 60fe8ad9..b4ee94ff 100644 --- a/DirectXTex/DirectXTexSwizzle.cpp +++ b/DirectXTex/DirectXTexSwizzle.cpp @@ -55,7 +55,7 @@ namespace constexpr size_t MAX_TEXTURE_DIMENSION = 16384u; #if defined(_M_X64) || defined(_M_ARM64) || __x86_64__ || __aarch64__ - constexpr uint64_t MAX_TEXTURE_SIZE = 16384u * 16384u * 16u; + constexpr uint64_t MAX_TEXTURE_SIZE = UINT64_C(16384) * UINT64_C(16384) * 16u; #else constexpr uint64_t MAX_TEXTURE_SIZE = UINT32_MAX; #endif @@ -709,4 +709,4 @@ HRESULT DirectX::StandardSwizzle( } } } -#endif \ No newline at end of file +#endif