# HG changeset patch # User klao # Date 1083104951 0 # Node ID 5caac2f7829b90163fbc268dad187530747bdbde # Parent c30569f5493660a0a009c2872ce9d7c1e050321d trifles diff -r c30569f54936 -r 5caac2f7829b src/work/klao/path.h --- a/src/work/klao/path.h Tue Apr 27 18:33:39 2004 +0000 +++ b/src/work/klao/path.h Tue Apr 27 22:29:11 2004 +0000 @@ -585,7 +585,7 @@ template typename DynamicPath::EdgeIt& DynamicPath::nth(EdgeIt &e, size_t k) const { - if( k<0 || k>=length() ) { + if( k>=length() ) { // FIXME: invalid EdgeIt e.it = edges.end(); e.forw = true; @@ -606,7 +606,7 @@ template typename DynamicPath::NodeIt& DynamicPath::nth(NodeIt &n, size_t k) const { - if( k<0 || k>length() ) { + if( k>length() ) { // FIXME: invalid NodeIt n.idx = length()+1; n.tail = true; @@ -649,7 +649,7 @@ int ai = a.idx, bi = b.idx; if( bi