summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_sequence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_sequence.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_sequence.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp
index 5d88dabd8ac..321f770455a 100644
--- a/TAO/TAO_IDL/be/be_sequence.cpp
+++ b/TAO/TAO_IDL/be/be_sequence.cpp
@@ -106,8 +106,10 @@ be_sequence::gen_name (void)
// append the size (if any)
if (!this->unbounded_)
{
- ACE_OS::sprintf (namebuf, "%s_%d", namebuf, this->max_size ()->ev
- ()->u.ulval);
+ ACE_OS::sprintf (namebuf,
+ "%s_%lu",
+ namebuf,
+ this->max_size ()->ev ()->u.ulval);
}
return ACE_OS::strdup (namebuf);
}
@@ -279,7 +281,7 @@ be_sequence::instance_name ()
this->flatname());
else
ACE_OS::sprintf (namebuf,
- "_TAO_Bounded_Object_Sequence_%s_%d",
+ "_TAO_Bounded_Object_Sequence_%s_%lu",
this->flatname(),
this->max_size ()->ev()->u.ulval);
break;
@@ -313,7 +315,7 @@ be_sequence::instance_name ()
}
else
ACE_OS::sprintf (namebuf,
- "_TAO_Bounded_Sequence_%s_%d",
+ "_TAO_Bounded_Sequence_%s_%lu",
this->flatname(),
//prim_type->flatname (),
this->max_size()->ev()->u.ulval);