summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-04 18:45:42 -0400
committerYong He <yonghe@outlook.com>2017-11-04 18:45:42 -0400
commit8c0a429c292ea6735ce1ac14c22125266e8fb6c5 (patch)
tree2101960ceceb41bd2907216e912eef76f2a80030 /source/slang/check.cpp
parenta4fabfc85527bd4807a603dcde7c0a3762b11136 (diff)
fix warnings
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index d01c913b1..58c1762bb 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1661,7 +1661,7 @@ namespace Slang
if (!declRefType)
return false;
- auto subStructTypeDecl = declRefType->declRef.getDecl()->As<AggTypeDecl>();
+ auto structTypeDecl = declRefType->declRef.getDecl()->As<AggTypeDecl>();
//TODO: What do we do if type is a generic specialization?
// i.e. if the struct defines typedef Generic<float> T;
// how to check if T satisfies the associatedtype constraints?
@@ -1669,7 +1669,7 @@ namespace Slang
bool conformance = true;
for (auto & inheritanceDecl : constraintList)
{
- conformance = conformance && checkConformance(subStructTypeDecl, inheritanceDecl.Ptr());
+ conformance = conformance && checkConformance(structTypeDecl, inheritanceDecl.Ptr());
}
return conformance;
}