summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-05-24 16:07:38 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-05-24 16:07:38 +0000
commit0978392eff3233c484b4dd7f54a9ba593196e974 (patch)
tree5bc6f556c37e56c56977c17dc7b65d13a669c9ef
parentacba0e54d7cb2a64f8ad953d4d108b6f7065dab9 (diff)
downloadATCD-0978392eff3233c484b4dd7f54a9ba593196e974.tar.gz
fixed an error when checking for an error status from MProfile::set(size).
MProfile::set(size) return zero on failure, not success.
-rw-r--r--TAO/tao/Pluggable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/tao/Pluggable.cpp b/TAO/tao/Pluggable.cpp
index 0be563e7d43..81890f3c401 100644
--- a/TAO/tao/Pluggable.cpp
+++ b/TAO/tao/Pluggable.cpp
@@ -163,7 +163,8 @@ TAO_Connector::make_mprofile (const char *string,
}
// Tell the MProfile object how many Profiles it should hold.
- if (mprofile.set (profile_count) != 0)
+ // Mprofile::set(size) returns the number profiles it can hold.
+ if (mprofile.set (profile_count) != ACE_static_cast (int,profile_count))
{
ACE_THROW_RETURN (CORBA::INITIALIZE (), -1);
// Error while setting the MProfile size!