diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-02 19:30:11 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-02 19:30:11 +0000 |
commit | a358fd70d82239e895d0f07700c49857e78af634 (patch) | |
tree | f859952c26b5e234bb1d87df72a270153a816284 /ace/Map_Manager.cpp | |
parent | f419229e2713bbf70e7538e8b41de620292562d0 (diff) | |
download | ATCD-a358fd70d82239e895d0f07700c49857e78af634.tar.gz |
Sometimes, we don't need the casts.
Diffstat (limited to 'ace/Map_Manager.cpp')
-rw-r--r-- | ace/Map_Manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/Map_Manager.cpp b/ace/Map_Manager.cpp index d4893bb22e3..371c14f15a3 100644 --- a/ace/Map_Manager.cpp +++ b/ace/Map_Manager.cpp @@ -610,7 +610,7 @@ ACE_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::next (ACE_Map_Entry<EXT_ID, INT if (this->map_man_->search_structure_ != 0 // Note that this->next_ is never negative at this point... && ACE_static_cast(size_t, this->next_) < this->map_man_->cur_size_ - && ACE_static_cast(size_t, this->next_) > -1) + && this->next_ > -1) { mm = &this->map_man_->search_structure_[this->next_]; return 1; @@ -628,7 +628,7 @@ ACE_Map_Iterator_Base<EXT_ID, INT_ID, ACE_LOCK>::done (void) const return this->map_man_->search_structure_ == 0 // Note that this->next_ is never negative at this point... || ACE_static_cast(size_t, this->next_) >= this->map_man_->cur_size_ - || ACE_static_cast(size_t, this->next_) <= -1; + || this->next_ <= -1; } template <class EXT_ID, class INT_ID, class ACE_LOCK> int |