From b07f4effda2f87ac9b3229e588121d224fd8cf52 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 28 Apr 2023 12:00:52 +0800 Subject: Use Index for FuncType param count (#2853) --- source/slang/slang-ast-type.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-ast-type.cpp') 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, -- cgit v1.2.3