summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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