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:
parent
f63c39ef96
commit
07407b55e8
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue