Account for maxsubcnt overflowing
This commit is contained in:
@@ -217,7 +217,7 @@ void generate_pattern(std::function<void(pm&,std::function<void()>)> run, const
|
||||
run(matcher, [](){});
|
||||
}
|
||||
|
||||
if (submodcnt)
|
||||
if (submodcnt && maxsubcnt < (1 << 16))
|
||||
maxsubcnt *= 2;
|
||||
|
||||
design->remove(mod);
|
||||
|
||||
Reference in New Issue
Block a user