summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>1998-01-22 22:32:42 +0000
committerChris Cleeland <chris.cleeland@gmail.com>1998-01-22 22:32:42 +0000
commitc6be85c169ec645c001d6f86f002fc100cd8558e (patch)
tree4a247c3296f0597499dbb3e9765dbf3a0773c6a0
parentd4c31f5e2aeeb0361bbdbdc49d6aad4f476ba70a (diff)
downloadATCD-c6be85c169ec645c001d6f86f002fc100cd8558e.tar.gz
* tao/nvlist.cpp (is_nil): Fixed some return lines that were
probably returning the wrong value by not enclosing a comparison in parens. Fortunately we weren't really checking the return value on these, I suspect ;-) Thanks to Frederic Andres <andres@rd.nacsis.ac.jp> for turning this in.
-rw-r--r--TAO/ChangeLog-98c8
-rw-r--r--TAO/tao/nvlist.cpp4
2 files changed, 10 insertions, 2 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c
index dc129156fcb..b393a8fe715 100644
--- a/TAO/ChangeLog-98c
+++ b/TAO/ChangeLog-98c
@@ -1,3 +1,11 @@
+Thu Jan 22 16:32:56 1998 Chris Cleeland <cleeland@cs.wustl.edu>
+
+ * tao/nvlist.cpp (is_nil): Fixed some return lines that were
+ probably returning the wrong value by not enclosing a comparison
+ in parens. Fortunately we weren't really checking the return
+ value on these, I suspect ;-) Thanks to Frederic Andres
+ <andres@rd.nacsis.ac.jp> for turning this in.
+
Thu Jan 22 16:16:32 1998 Sumedh Mungee <sumedh@cs.wustl.edu>
* CosPropertyService_i.cpp, CosPropertyService_i.h, AVStreams_i.cpp, AVStreams_i.h:
diff --git a/TAO/tao/nvlist.cpp b/TAO/tao/nvlist.cpp
index a6f3daaa629..e5f930bc38d 100644
--- a/TAO/tao/nvlist.cpp
+++ b/TAO/tao/nvlist.cpp
@@ -88,7 +88,7 @@ CORBA::release (CORBA::NamedValue_ptr nv)
CORBA::Boolean
CORBA::is_nil (CORBA::NamedValue_ptr nv)
{
- return (CORBA::Boolean) nv == 0;
+ return (CORBA::Boolean) (nv == 0);
}
CORBA_NamedValue::~CORBA_NamedValue (void)
@@ -163,7 +163,7 @@ CORBA::release (CORBA::NVList_ptr nvl)
CORBA::Boolean
CORBA::is_nil (CORBA::NVList_ptr nvl)
{
- return (CORBA::Boolean) nvl == 0;
+ return (CORBA::Boolean) (nvl == 0);
}
CORBA_NVList::~CORBA_NVList (void)