diff options
Diffstat (limited to 'source/slang/slang-check-constraint.cpp')
| -rw-r--r-- | source/slang/slang-check-constraint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-constraint.cpp b/source/slang/slang-check-constraint.cpp index 7c6f8929a..9355834b5 100644 --- a/source/slang/slang-check-constraint.cpp +++ b/source/slang/slang-check-constraint.cpp @@ -121,7 +121,7 @@ Type* SemanticsVisitor::_tryJoinTypeWithInterface( ConversionCost bestCost = kConversionCost_Explicit; if (auto basicType = dynamicCast<BasicExpressionType>(type)) { - for (Int baseTypeFlavorIndex = 0; baseTypeFlavorIndex < Int(BaseType::CountOf); + for (Int baseTypeFlavorIndex = 0; baseTypeFlavorIndex < Int(BaseType::CountOfPrimitives); baseTypeFlavorIndex++) { // Don't consider `type`, since we already know it doesn't work. |
