summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_union_branch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_union_branch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_union_branch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_union_branch.cpp b/TAO/TAO_IDL/be/be_union_branch.cpp
index 006ce84d787..4c67346e028 100644
--- a/TAO/TAO_IDL/be/be_union_branch.cpp
+++ b/TAO/TAO_IDL/be/be_union_branch.cpp
@@ -152,7 +152,7 @@ be_union_branch::gen_default_label_value (TAO_OutStream *os,
os->print ("%d", dv.u.char_val);
break;
case AST_Expression::EV_bool:
- *os << dv.u.bool_val;
+ *os << (dv.u.bool_val == 0 ? "false" : "true");
break;
case AST_Expression::EV_enum:
// The discriminant is an enum. Some compilers will