diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-17 17:49:57 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-17 17:49:57 +0000 |
commit | 789573f5e7383edef2e83e1213d8ce8c7bd4a3a2 (patch) | |
tree | 9d5112d5d4c577b574ae88bc859fee36fe52ed37 /tests | |
parent | 8495aaec351986c63de9d672a737ee992bbab037 (diff) | |
download | ATCD-789573f5e7383edef2e83e1213d8ce8c7bd4a3a2.tar.gz |
ChangeLogTag:Wed May 17 12:48:24 2000 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CDR_File_Test.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/tests/CDR_File_Test.cpp b/tests/CDR_File_Test.cpp index 057e8b63eef..8833efd1407 100644 --- a/tests/CDR_File_Test.cpp +++ b/tests/CDR_File_Test.cpp @@ -54,7 +54,7 @@ public: ACE_CDR::Double d); // Constructor. - int operator == (const CDR_Test &rhs); + int operator == (const CDR_Test &rhs) const; // Compare <rhs> for equality with <this>. private: @@ -138,14 +138,23 @@ operator >> (ACE_InputCDR &is, CDR_Test &t) } int -CDR_Test::operator == (const CDR_Test &rhs) +CDR_Test::operator == (const CDR_Test &rhs) const { - return this->char_ == rhs.char_ - && this->word2_ == rhs.word2_ - && this->word4_ == rhs.word4_ - && this->word8_ == rhs.word8_ - && this->fpoint_ == rhs.fpoint_ - && this->dprec_ == rhs.dprec_; + // @@ Workaround bug in egcs-1.1.1 using a single && expression + // results in UMR errors in purify. + if (this->char_ != rhs.char_) + return 0; + if (this->word2_ != rhs.word2_) + return 0; + if (this->word4_ != rhs.word4_) + return 0; + if (this->word8_ != rhs.word8_) + return 0; + if (this->fpoint_ != rhs.fpoint_) + return 0; + if (this->dprec_ != rhs.dprec_) + return 0; + return 1; } static int |