summaryrefslogtreecommitdiffstats
path: root/source/core/slang-render-api-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-render-api-util.cpp')
-rw-r--r--source/core/slang-render-api-util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-render-api-util.cpp b/source/core/slang-render-api-util.cpp
index 80f2225d9..05def0fe3 100644
--- a/source/core/slang-render-api-util.cpp
+++ b/source/core/slang-render-api-util.cpp
@@ -62,7 +62,7 @@ UnownedStringSlice RenderApiUtil::getApiName(RenderApiType type)
if (names.indexOf(',') >= 0)
{
StringUtil::split(names, ',', namesList);
- if (namesList.IndexOf(name) != UInt(-1))
+ if (namesList.indexOf(name) != Index(-1))
{
return apiInfo.type;
}