]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
ng_filter: Fix bug introduced in 98eff64
authorJustin Viiret <justin.viiret@intel.com>
Thu, 28 Jan 2016 06:16:53 +0000 (17:16 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 1 Mar 2016 00:30:20 +0000 (11:30 +1100)
If the max width is modified for a region, use the modified version when
checking to see if a self-loop must be added on the last vertex.

src/nfagraph/ng_prefilter.cpp

index c0caf1b9ecd1ee23cf54d79339722d178bec9a37..c2b9eea9b710806ce14896ebdfdad424f7c1559a 100644 (file)
@@ -285,7 +285,7 @@ void replaceRegion(NGHolder &g, const RegionInfo &ri,
         verts.push_back(v);
     }
 
-    if (ri.maxWidth.is_infinite()) {
+    if (maxWidth.is_infinite()) {
         add_edge(verts.back(), verts.back(), g);
     }