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

== & != have boolean expression type

This commit is contained in:
Andrew Niefer 2005-05-18 17:13:13 +00:00
parent 5c33d3d918
commit 1b02dd9ecf

View file

@ -1683,6 +1683,8 @@ public class CPPVisitor {
case IASTBinaryExpression.op_greaterThan: case IASTBinaryExpression.op_greaterThan:
case IASTBinaryExpression.op_logicalAnd: case IASTBinaryExpression.op_logicalAnd:
case IASTBinaryExpression.op_logicalOr: case IASTBinaryExpression.op_logicalOr:
case IASTBinaryExpression.op_equals:
case IASTBinaryExpression.op_notequals:
result = new CPPBasicType( ICPPBasicType.t_bool, 0 ); result = new CPPBasicType( ICPPBasicType.t_bool, 0 );
break; break;
case IASTBinaryExpression.op_plus: case IASTBinaryExpression.op_plus: