lemon/dimacs.h
changeset 1372 f37f0845cf32
parent 608 6e0525ec5355
child 1373 332627dd249e
     1.1 --- a/lemon/dimacs.h	Mon Mar 30 16:46:37 2009 +0100
     1.2 +++ b/lemon/dimacs.h	Fri Sep 08 17:02:03 2017 +0200
     1.3 @@ -339,7 +339,7 @@
     1.4                       DimacsDescriptor desc=DimacsDescriptor()) {
     1.5      typename Digraph::Node u,v;
     1.6      if(desc.type==DimacsDescriptor::NONE) desc=dimacsType(is);
     1.7 -    if(desc.type!=DimacsDescriptor::MAX || desc.type!=DimacsDescriptor::SP)
     1.8 +    if(desc.type!=DimacsDescriptor::MAX && desc.type!=DimacsDescriptor::SP)
     1.9        throw FormatError("Problem type mismatch");
    1.10      _readDimacs(is, g, capacity, u, v, infty, desc);
    1.11    }