Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Nov 26, 2013
1 parent a3d1ee7 commit 842e4c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unit_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,16 @@ std::pair<unit_map::unit_iterator, bool> unit_map::replace(const map_location &l
size_t unit_map::num_iters() const {
///Add up number of extant iterators
size_t num_iters(0);
t_umap::const_iterator ui = umap_.begin();
t_umap::const_iterator uend = umap_.end();
t_umap::const_iterator ui = umap_.begin();
t_umap::const_iterator uend = umap_.end();
for( ; ui != uend ; ++ui){
if(ui->second.ref_count < 0) {
//Somewhere, someone generated 2^31 iterators to this unit
bool a_reference_counter_overflowed(false);
assert(a_reference_counter_overflowed);
}
}
num_iters += ui->second.ref_count;
}
}

return num_iters;
}
Expand Down

0 comments on commit 842e4c1

Please sign in to comment.