# HG changeset patch # User Peter Kovacs # Date 2008-12-12 22:09:29 # Node ID 3c0d39b6388ccc6f0f2f1804a47ff9f021d61fdd # Parent d369e885d19681445ed911f72fb321e3268ea064 Avoid warning in adaptors.h (#67) diff --git a/lemon/adaptors.h b/lemon/adaptors.h --- a/lemon/adaptors.h +++ b/lemon/adaptors.h @@ -2205,12 +2205,12 @@ void first(Node& i) const { _graph->first(i); } void first(Arc& i) const { _graph->first(i); } void firstIn(Arc& i, const Node& n) const { - bool d; + bool d = true; _graph->firstInc(i, d, n); while (i != INVALID && d == (*_direction)[i]) _graph->nextInc(i, d); } void firstOut(Arc& i, const Node& n ) const { - bool d; + bool d = true; _graph->firstInc(i, d, n); while (i != INVALID && d != (*_direction)[i]) _graph->nextInc(i, d); }