summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-25 02:12:21 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-25 02:12:21 +0000
commit7d25a1556a1b5bc130dccd2ece7858c5a39a8fc6 (patch)
tree82fe9668a18e8db98e7780c373c460c8df53ab7c
parentc8a81cdadadcf45bc46e5f99db2d75b294245102 (diff)
downloadATCD-7d25a1556a1b5bc130dccd2ece7858c5a39a8fc6.tar.gz
Changed the 32-bit ensuring enum value to 0x7FFFFFFF.
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
index cc7fbcd1bfa..fecf6d8419e 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
@@ -64,8 +64,10 @@ be_visitor_enum_ch::visit_enum (be_enum *node)
}
os->indent ();
+ // The following ensures that the underlying enum type
+ // is 32 bits
*os << node->local_name ()
- << "_TAO_ENUM_32BIT_ENFORCER = 0xFFFFFFFF\n";
+ << "_TAO_ENUM_32BIT_ENFORCER = 0x7FFFFFFF\n";
os->decr_indent ();
*os << "};" << be_nl;
// As per the ORBOS spec, we need the following typedef