summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-01 22:27:10 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-01 22:27:10 +0000
commit33c944c9e002b9d0c648ed454440c0a06672b18a (patch)
tree9eb39a9d07da9ede11be43675f11a32bb89540b8
parent25f771800385b79c2381a4c32b1f58a832ee43e0 (diff)
downloadATCD-33c944c9e002b9d0c648ed454440c0a06672b18a.tar.gz
Removed ACE_NTOHL macro from union case label value code generation for
32 bit types.
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
index 0ac7b7e2b16..8ca4c8ca7bf 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
@@ -1783,20 +1783,20 @@ be_visitor_typecode_defn::gen_encapsulation (be_union_branch *node)
break;
case AST_Expression::EV_long:
- os->print ("ACE_NTOHL (0x%x)", (unsigned long)ev->u.lval);
+ os->print ("0x%08.8x", (unsigned long)ev->u.lval);
// size of short/wchar aligned to 4 bytes
this->tc_offset_ += sizeof (ACE_CDR::ULong);
break;
case AST_Expression::EV_ulong:
- os->print ("ACE_NTOHL (0x%x)", ev->u.ulval);
+ os->print ("0x%08.8x", ev->u.ulval);
// size of short/wchar aligned to 4 bytes
this->tc_offset_ += sizeof (ACE_CDR::ULong);
break;
case AST_Expression::EV_any:
// enum
- os->print ("ACE_NTOHL (0x%x)", (unsigned long)ev->u.eval);
+ os->print ("0x%08.8x", (unsigned long)ev->u.eval);
// size of short/wchar aligned to 4 bytes
this->tc_offset_ += sizeof (ACE_CDR::ULong);
break;
@@ -1853,20 +1853,20 @@ be_visitor_typecode_defn::gen_encapsulation (be_union_branch *node)
break;
case AST_Expression::EV_long:
- os->print ("ACE_NTOHL (0x%x)", (unsigned long)dv.u.long_val);
+ os->print ("0x%08.8x", (unsigned long)dv.u.long_val);
// size of short/wchar aligned to 4 bytes
this->tc_offset_ += sizeof (ACE_CDR::ULong);
break;
case AST_Expression::EV_ulong:
- os->print ("ACE_NTOHL (0x%x)", (unsigned long)dv.u.ulong_val);
+ os->print ("0x%08.8x", (unsigned long)dv.u.ulong_val);
// size of short/wchar aligned to 4 bytes
this->tc_offset_ += sizeof (ACE_CDR::ULong);
break;
case AST_Expression::EV_any:
// enum
- os->print ("ACE_NTOHL (0x%x)", (unsigned long)dv.u.enum_val);
+ os->print ("0x%08.8x", (unsigned long)dv.u.enum_val);
// size of short/wchar aligned to 4 bytes
this->tc_offset_ += sizeof (ACE_CDR::ULong);
break;