summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-overload.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-check-overload.cpp
parent53793612e3a2f1cadc4f7cbf703bcd94b7121414 (diff)
Use Index for FuncType param count (#2853)
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
-rw-r--r--source/slang/slang-check-overload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp
index fbd8fb288..f2947a55d 100644
--- a/source/slang/slang-check-overload.cpp
+++ b/source/slang/slang-check-overload.cpp
@@ -98,7 +98,7 @@ namespace Slang
OverloadResolveContext& context,
OverloadCandidate const& candidate)
{
- UInt argCount = context.getArgCount();
+ Count argCount = context.getArgCount();
ParamCounts paramCounts = { 0, 0 };
switch (candidate.flavor)
{
@@ -1559,7 +1559,7 @@ namespace Slang
// Extract parameter list from processed type.
List<Type*> paramTypes;
- for (UIndex ii = 0; ii < diffFuncType->getParamCount(); ii++)
+ for (Index ii = 0; ii < diffFuncType->getParamCount(); ii++)
paramTypes.add(removeParamDirType(diffFuncType->getParamType(ii)));
// Try to infer generic arguments, based on the updated context.
@@ -1682,7 +1682,7 @@ namespace Slang
for (Index i = 0; i < expr->arguments.getCount(); i++)
{
auto& arg = expr->arguments[i];
- if (funcType && i < (Index)funcType->getParamCount())
+ if (funcType && i < funcType->getParamCount())
{
if (funcType->getParamDirection(i) == kParameterDirection_Out)
continue;