# HG changeset patch # User Peter Kovacs # Date 1504882923 -7200 # Node ID f37f0845cf3238988e8f635b32f3d173cd957f0f # Parent 6e0525ec5355243555def854496159f61034a1ae Bug fix in DIMACS reader (#607) diff -r 6e0525ec5355 -r f37f0845cf32 lemon/dimacs.h --- a/lemon/dimacs.h Mon Mar 30 16:46:37 2009 +0100 +++ b/lemon/dimacs.h Fri Sep 08 17:02:03 2017 +0200 @@ -339,7 +339,7 @@ DimacsDescriptor desc=DimacsDescriptor()) { typename Digraph::Node u,v; if(desc.type==DimacsDescriptor::NONE) desc=dimacsType(is); - if(desc.type!=DimacsDescriptor::MAX || desc.type!=DimacsDescriptor::SP) + if(desc.type!=DimacsDescriptor::MAX && desc.type!=DimacsDescriptor::SP) throw FormatError("Problem type mismatch"); _readDimacs(is, g, capacity, u, v, infty, desc); }