Skip to content

Commit

Permalink
Build: Fix build warnings introduced by 2173c6.
Browse files Browse the repository at this point in the history
Also bump version for recent changes.
  • Loading branch information
johnkslang committed Nov 27, 2018
1 parent c7a84a9 commit d41a8dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion glslang/Include/revision.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This header is generated by the make-revision script.

#define GLSLANG_PATCH_LEVEL 2997
#define GLSLANG_PATCH_LEVEL 3006
22 changes: 11 additions & 11 deletions glslang/MachineIndependent/Constant.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -671,27 +671,27 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TType& returnType)
}

case EOpConvInt8ToBool:
newConstArray[i].setBConst(unionArray[i].getI8Const()); break;
newConstArray[i].setBConst(unionArray[i].getI8Const() != 0); break;
case EOpConvUint8ToBool:
newConstArray[i].setBConst(unionArray[i].getU8Const()); break;
newConstArray[i].setBConst(unionArray[i].getU8Const() != 0); break;
case EOpConvInt16ToBool:
newConstArray[i].setBConst(unionArray[i].getI16Const()); break;
newConstArray[i].setBConst(unionArray[i].getI16Const() != 0); break;
case EOpConvUint16ToBool:
newConstArray[i].setBConst(unionArray[i].getU16Const()); break;
newConstArray[i].setBConst(unionArray[i].getU16Const() != 0); break;
case EOpConvIntToBool:
newConstArray[i].setBConst(unionArray[i].getIConst()); break;
newConstArray[i].setBConst(unionArray[i].getIConst() != 0); break;
case EOpConvUintToBool:
newConstArray[i].setBConst(unionArray[i].getUConst()); break;
newConstArray[i].setBConst(unionArray[i].getUConst() != 0); break;
case EOpConvInt64ToBool:
newConstArray[i].setBConst(unionArray[i].getI64Const()); break;
newConstArray[i].setBConst(unionArray[i].getI64Const() != 0); break;
case EOpConvUint64ToBool:
newConstArray[i].setBConst(unionArray[i].getI64Const()); break;
newConstArray[i].setBConst(unionArray[i].getI64Const() != 0); break;
case EOpConvFloat16ToBool:
newConstArray[i].setBConst(unionArray[i].getDConst()); break;
newConstArray[i].setBConst(unionArray[i].getDConst() != 0); break;
case EOpConvFloatToBool:
newConstArray[i].setBConst(unionArray[i].getDConst()); break;
newConstArray[i].setBConst(unionArray[i].getDConst() != 0); break;
case EOpConvDoubleToBool:
newConstArray[i].setBConst(unionArray[i].getDConst()); break;
newConstArray[i].setBConst(unionArray[i].getDConst() != 0); break;

case EOpConvBoolToInt8:
newConstArray[i].setI8Const(unionArray[i].getBConst()); break;
Expand Down

0 comments on commit d41a8dc

Please sign in to comment.