Skip to content

Commit

Permalink
Attempt to fix CodeQL warning
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Nov 5, 2024
1 parent 74f7445 commit c0e91fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DirectXTex/DirectXTexSwizzle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -709,4 +709,4 @@ HRESULT DirectX::StandardSwizzle(
}
}
}
#endif
#endif

0 comments on commit c0e91fc

Please sign in to comment.