Permalink
Browse files

Fix debug build on linux (type strictness).

  • Loading branch information...
riannucci committed Mar 23, 2013
1 parent 8e70a53 commit f31836a18621a5477ae6888d832afb96f1a56f52
Showing with 4 additions and 3 deletions.
  1. +2 −2 src/state.cc
  2. +2 −1 src/state.h
View
@@ -39,7 +39,7 @@ void Pool::DelayEdge(Edge* edge) {
}
void Pool::RetrieveReadyEdges(set<Edge*>* ready_queue) {
- set<Edge*>::iterator it = delayed_.begin();
+ DelayedEdges::iterator it = delayed_.begin();
while (it != delayed_.end()) {
Edge* edge = *it;
if (current_use_ + edge->weight() > depth_)
@@ -53,7 +53,7 @@ void Pool::RetrieveReadyEdges(set<Edge*>* ready_queue) {
void Pool::Dump() const {
printf("%s (%d/%d) ->\n", name_.c_str(), current_use_, depth_);
- for (set<Edge*>::const_iterator it = delayed_.begin();
+ for (DelayedEdges::const_iterator it = delayed_.begin();
it != delayed_.end(); ++it)
{
printf("\t");
View
@@ -76,7 +76,8 @@ struct Pool {
static bool WeightedEdgeCmp(const Edge* a, const Edge* b);
- set<Edge*,bool(*)(const Edge*, const Edge*)> delayed_;
+ typedef set<Edge*,bool(*)(const Edge*, const Edge*)> DelayedEdges;
+ DelayedEdges delayed_;
};
/// Global state (file status, loaded rules) for a single run.

0 comments on commit f31836a

Please sign in to comment.