1.1 --- a/src/lemon/path.h Thu Mar 31 13:29:05 2005 +0000
1.2 +++ b/src/lemon/path.h Thu Mar 31 13:30:27 2005 +0000
1.3 @@ -102,7 +102,7 @@
1.4 }
1.5
1.6 /// Length of the path.
1.7 - size_t length() const { return edges.size(); }
1.8 + int length() const { return edges.size(); }
1.9 /// Returns whether the path is empty.
1.10 bool empty() const { return edges.empty(); }
1.11
1.12 @@ -197,9 +197,7 @@
1.13 bool operator<(const EdgeIt& e) const { return idx<e.idx; }
1.14
1.15 private:
1.16 - // FIXME: comparison between signed and unsigned...
1.17 - // Jo ez igy? Vagy esetleg legyen a length() int?
1.18 - void validate() { if( size_t(idx) >= p->length() ) idx=-1; }
1.19 + void validate() { if(idx >= p->length() ) idx=-1; }
1.20 };
1.21
1.22 /**
1.23 @@ -247,7 +245,7 @@
1.24 bool operator<(const NodeIt& e) const { return idx<e.idx; }
1.25
1.26 private:
1.27 - void validate() { if( size_t(idx) > p->length() ) idx=-1; }
1.28 + void validate() { if(idx > p->length() ) idx=-1; }
1.29 };
1.30
1.31 friend class Builder;