Fixes to 8f1684b7bb, merge pull request 52.
This commit is contained in:
parent
8f1684b7bb
commit
306695360d
5 changed files with 11 additions and 11 deletions
|
|
@ -2,5 +2,5 @@
|
|||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "2.2.687"
|
||||
#define GLSLANG_DATE "03-Aug-2015"
|
||||
#define GLSLANG_REVISION "2.2.699"
|
||||
#define GLSLANG_DATE "06-Aug-2015"
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* const
|
|||
case EbtInt:
|
||||
if (rightUnionArray[i] == 0)
|
||||
newConstArray[i].setIConst(0x7FFFFFFF);
|
||||
else if (rightUnionArray[i].getIConst() == -1 && (unsigned int)unionArray[i].getIConst() == 0x80000000)
|
||||
else if (rightUnionArray[i].getIConst() == -1 && unionArray[i].getIConst() == 0x80000000)
|
||||
newConstArray[i].setIConst(0x80000000);
|
||||
else
|
||||
newConstArray[i].setIConst(unionArray[i].getIConst() / rightUnionArray[i].getIConst());
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ protected:
|
|||
void advance()
|
||||
{
|
||||
++currentChar;
|
||||
if (currentChar >= static_cast<size_t>(lengths[currentSource])) {
|
||||
if (currentChar >= lengths[currentSource]) {
|
||||
++currentSource;
|
||||
if (currentSource < numSources) {
|
||||
loc[currentSource].string = loc[currentSource - 1].string + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue