1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 299911. Minor fix.

This commit is contained in:
Sergey Prigogin 2012-08-01 19:58:48 -07:00
parent d8460fa23b
commit 9e2fb6a53a

View file

@ -12,7 +12,6 @@
package org.eclipse.cdt.internal.core.dom.parser.cpp.semantics;
import static org.eclipse.cdt.core.dom.ast.IASTBinaryExpression.op_assign;
import static org.eclipse.cdt.core.dom.ast.IASTBinaryExpression.op_binaryAnd;
import static org.eclipse.cdt.core.dom.ast.IASTBinaryExpression.op_binaryAndAssign;
import static org.eclipse.cdt.core.dom.ast.IASTBinaryExpression.op_binaryOrAssign;
import static org.eclipse.cdt.core.dom.ast.IASTBinaryExpression.op_binaryXorAssign;
@ -156,7 +155,7 @@ public class EvalBinary extends CPPEvaluation {
Long num1 = v1.numericalValue();
if (num1 != null) {
if (num1 == 0) {
if (fOperator == op_binaryAnd || fOperator == op_logicalAnd)
if (fOperator == op_logicalAnd)
return v1;
} else if (fOperator == op_logicalOr) {
return v1;