summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-20 02:48:12 -0500
committerYong He <yonghe@outlook.com>2018-01-20 02:48:12 -0500
commit913f4d09b91e3fd7449468b135881c940cacb3c0 (patch)
tree955ea56acc362f3b4ae071b93bbccfffc9799d3d /source/slang/syntax.cpp
parent6dd64fd9d31f29b07fcf63e743066efabbc1b092 (diff)
bug fixes
fixes #373 fixes bug that misses current translation unit's scope when resolving entry-point global type argument expression.
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index 552f1dc56..85a702726 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -355,7 +355,7 @@ void Type::accept(IValVisitor* visitor, void* extra)
auto arrType = type->AsArrayType();
if (!arrType)
return false;
- return (ArrayLength == arrType->ArrayLength && baseType->Equals(arrType->baseType.Ptr()));
+ return (ArrayLength->EqualsVal(arrType->ArrayLength) && baseType->Equals(arrType->baseType.Ptr()));
}
RefPtr<Val> ArrayExpressionType::SubstituteImpl(SubstitutionSet subst, int* ioDiff)