summaryrefslogtreecommitdiff
path: root/source/slang/slang-syntax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-syntax.cpp')
-rw-r--r--source/slang/slang-syntax.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-syntax.cpp b/source/slang/slang-syntax.cpp
index 19e4256fe..502425da8 100644
--- a/source/slang/slang-syntax.cpp
+++ b/source/slang/slang-syntax.cpp
@@ -236,7 +236,7 @@ void Type::accept(IValVisitor* visitor, void* extra)
Type* Session::getBuiltinType(BaseType flavor)
{
- return RefPtr<Type>(builtinTypes[(int)flavor]);
+ return builtinTypes[int(flavor)];
}
Type* Session::getInitializerListType()