summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
index 50c8fb56849..c13431c2df7 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
@@ -96,7 +96,8 @@ TAO_PG_GenericFactory::create_object (
// If the number of factories is less than the initial number of
// members, then the desired number of members cannot possibly be
// created.
- if (factory_infos_count < initial_number_members)
+ if (factory_infos_count < ACE_static_cast (CORBA::ULong,
+ initial_number_members))
ACE_THROW_RETURN (PortableGroup::CannotMeetCriteria (),
CORBA::Object::_nil ());