summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-reflection.cpp')
-rw-r--r--source/slang/slang-reflection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/slang/slang-reflection.cpp b/source/slang/slang-reflection.cpp
index 72a20e932..1316efa5d 100644
--- a/source/slang/slang-reflection.cpp
+++ b/source/slang/slang-reflection.cpp
@@ -1571,6 +1571,5 @@ SLANG_API const char* spReflection_getHashedString(
SLANG_API int spComputeStringHash(const char* chars, size_t count)
{
- UnownedStringSlice slice(chars, count);
- return GetHashCode(slice);
+ return (int)getStableHashCode32(chars, count);
}