summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ast-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
-rw-r--r--source/slang/slang-ast-type.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp
index 987d73994..27cc7800b 100644
--- a/source/slang/slang-ast-type.cpp
+++ b/source/slang/slang-ast-type.cpp
@@ -548,7 +548,7 @@ bool FuncType::_equalsImplOverride(Type * type)
if (paramCount != otherParamCount)
return false;
- for (UInt pp = 0; pp < paramCount; ++pp)
+ for (Index pp = 0; pp < paramCount; ++pp)
{
auto paramType = getParamType(pp);
auto otherParamType = funcType->getParamType(pp);
@@ -622,9 +622,9 @@ Type* FuncType::_createCanonicalTypeOverride()
HashCode FuncType::_getHashCodeOverride()
{
HashCode hashCode = getResultType()->getHashCode();
- UInt paramCount = getParamCount();
+ Index paramCount = getParamCount();
hashCode = combineHash(hashCode, Slang::getHashCode(paramCount));
- for (UInt pp = 0; pp < paramCount; ++pp)
+ for (Index pp = 0; pp < paramCount; ++pp)
{
hashCode = combineHash(
hashCode,