diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2021-11-05 13:26:45 -0500 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2021-11-05 13:26:45 -0500 |
commit | 75fd738cbe9153802def7dc3d593edd51a4a1834 (patch) | |
tree | 2891e27d5c4054b11c0eacbb56da4d45eb4b4bd7 | |
parent | bffb55e36cf752988ce5cd3f55b37515601a8d06 (diff) | |
download | ATCD-75fd738cbe9153802def7dc3d593edd51a4a1834.tar.gz |
Respond to Review of #1715
https://github.com/DOCGroup/ACE_TAO/pull/1715#discussion_r743241981
-rw-r--r-- | TAO/TAO_IDL/ast/ast_expression.cpp | 10 | ||||
-rw-r--r-- | TAO/tests/IDL_Test/main.cpp | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp index f894c20e685..61f200426d9 100644 --- a/TAO/TAO_IDL/ast/ast_expression.cpp +++ b/TAO/TAO_IDL/ast/ast_expression.cpp @@ -1743,7 +1743,7 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek) } ExprType const expr_type = ek == EK_const ? - pd_v1->ev()->et : eval_kind_to_expr_type (ek); + pd_v1->ev ()->et : eval_kind_to_expr_type (ek); if (expr_type == EV_none) return nullptr; ACE_NEW_RETURN (retval, @@ -1871,7 +1871,7 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek) bool success = false; switch (expr_type) - { + { case EV_int8: success = do_eval_mod_op<ACE_CDR::Int8> ( pd_v1->ev ()->u.int8val, pd_v2->ev ()->u.int8val, retval->u.int8val); @@ -1924,7 +1924,7 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek) default: break; - } + } if (!success) { @@ -2011,7 +2011,7 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek) bool success = false; switch (expr_type) - { + { case EV_int8: success = do_eval_bit_op<ACE_CDR::Int8> (pd_ec, pd_v1->ev ()->u.int8val, pd_v2->ev ()->u.int8val, retval->u.int8val); @@ -2064,7 +2064,7 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek) default: break; - } + } if (!success) { diff --git a/TAO/tests/IDL_Test/main.cpp b/TAO/tests/IDL_Test/main.cpp index 60bfef43900..e1bf0f7124a 100644 --- a/TAO/tests/IDL_Test/main.cpp +++ b/TAO/tests/IDL_Test/main.cpp @@ -136,7 +136,6 @@ test_expressions (int &error_count) expect_equals<CORBA::Double> (error_count, "MixedFloatValues::mul", MixedFloatValues::mul, 18.0); expect_equals<CORBA::Double> (error_count, "MixedFloatValues::add", MixedFloatValues::add, 9.0); expect_equals<CORBA::Double> (error_count, "MixedFloatValues::sub", MixedFloatValues::sub, 3.0); - } int |