glslang parser: Fix precedence bug, submitted (as was the previous one) by Andrew Woloszyn (awoloszyn@google.com).
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31103 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
11f5fc04b8
commit
a0096021d9
1 changed files with 1 additions and 1 deletions
|
|
@ -2977,7 +2977,7 @@ void TParseContext::inductiveLoopCheck(TSourceLoc loc, TIntermNode* init, TInter
|
||||||
{
|
{
|
||||||
// loop index init must exist and be a declaration, which shows up in the AST as an aggregate of size 1 of the declaration
|
// loop index init must exist and be a declaration, which shows up in the AST as an aggregate of size 1 of the declaration
|
||||||
bool badInit = false;
|
bool badInit = false;
|
||||||
if (! init || ! init->getAsAggregate() || ! init->getAsAggregate()->getSequence().size() == 1)
|
if (! init || ! init->getAsAggregate() || init->getAsAggregate()->getSequence().size() != 1)
|
||||||
badInit = true;
|
badInit = true;
|
||||||
TIntermBinary* binaryInit;
|
TIntermBinary* binaryInit;
|
||||||
if (! badInit) {
|
if (! badInit) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue