Skip to content

Commit c0e91fc

Browse files
authored
Attempt to fix CodeQL warning
1 parent 74f7445 commit c0e91fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DirectXTex/DirectXTexSwizzle.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace
5555
constexpr size_t MAX_TEXTURE_DIMENSION = 16384u;
5656

5757
#if defined(_M_X64) || defined(_M_ARM64) || __x86_64__ || __aarch64__
58-
constexpr uint64_t MAX_TEXTURE_SIZE = 16384u * 16384u * 16u;
58+
constexpr uint64_t MAX_TEXTURE_SIZE = UINT64_C(16384) * UINT64_C(16384) * 16u;
5959
#else
6060
constexpr uint64_t MAX_TEXTURE_SIZE = UINT32_MAX;
6161
#endif
@@ -709,4 +709,4 @@ HRESULT DirectX::StandardSwizzle(
709709
}
710710
}
711711
}
712-
#endif
712+
#endif

0 commit comments

Comments
 (0)