diff --git a/glslang/MachineIndependent/Constant.cpp b/glslang/MachineIndependent/Constant.cpp index c8dd75be843e285fcf0c18efab45b567792318a1..1b73d969f171beaf7a0cf21df2202132f2c398cb 100644 --- a/glslang/MachineIndependent/Constant.cpp +++ b/glslang/MachineIndependent/Constant.cpp @@ -264,7 +264,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* right for (int i = 0; i < newComps; i++) { if (rightUnionArray[i] == 0) newConstArray[i] = leftUnionArray[i]; - else + else { switch (getType().getBasicType()) { case EbtInt: if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == INT_MIN) { @@ -288,6 +288,7 @@ TIntermTyped* TIntermConstantUnion::fold(TOperator op, const TIntermTyped* right modulo_default: newConstArray[i] = leftUnionArray[i] % rightUnionArray[i]; } + } } break;