summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ast-type.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-04-28 12:00:52 +0800
committerGitHub <noreply@github.com>2023-04-28 12:00:52 +0800
commitb07f4effda2f87ac9b3229e588121d224fd8cf52 (patch)
tree95d4602ba4a3fffe9a879a4960602e8b8d887017 /source/slang/slang-ast-type.cpp
parent53793612e3a2f1cadc4f7cbf703bcd94b7121414 (diff)
Use Index for FuncType param count (#2853)
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,