Unverified Commit 68b2e15e by Ryan Harrison Committed by GitHub

Use correct type for var storing returned value (#2263)

parent 08328fea
...@@ -643,7 +643,7 @@ public: ...@@ -643,7 +643,7 @@ public:
if (type.isArray()) { if (type.isArray()) {
TType derefType(type, 0); TType derefType(type, 0);
for (int e = 0; e < type.getOuterArraySize(); ++e) { for (int e = 0; e < type.getOuterArraySize(); ++e) {
uint32_t memberBlockIndex = addBlockName(name + "[" + String(e) + "]", derefType, size); int memberBlockIndex = addBlockName(name + "[" + String(e) + "]", derefType, size);
if (e == 0) if (e == 0)
blockIndex = memberBlockIndex; blockIndex = memberBlockIndex;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment