Skip to content

Commit aa582a9

Browse files
XXH128Hasher: compute consistent ShaderCreateInfo hash between 32 and 64 bits (fix #688)
1 parent 992fe43 commit aa582a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/GraphicsTools/src/XXH128Hasher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void XXH128State::Update(const ShaderCreateInfo& ShaderCI) noexcept
6464
{
6565
ASSERT_SIZEOF64(ShaderCI, 152, "Did you add new members to ShaderCreateInfo? Please handle them here.");
6666

67-
Update(ShaderCI.SourceLength, // Aka ByteCodeSize
67+
Update(static_cast<Uint32>(ShaderCI.SourceLength), // Aka ByteCodeSize
6868
ShaderCI.EntryPoint,
6969
ShaderCI.Desc,
7070
ShaderCI.SourceLanguage,

0 commit comments

Comments
 (0)