Ignore:
Timestamp:
Jan 1, 2018, 8:17:29 AM (13 months ago)
Author:
cameron
Message:

Bug fix for multiplexed alphabet mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_collect_unicodesets.cpp

    r5796 r5819  
    3030        if (CC * cc = dyn_cast<CC>(re)) {
    3131            if (cc->getAlphabet() == &cc::Unicode) {
    32                 UnicodeSets.push_back(cc);
     32                const auto index = find(UnicodeSets.begin(), UnicodeSets.end(), cc) - UnicodeSets.begin();
     33                if (index == UnicodeSets.size()) UnicodeSets.push_back(cc);
    3334            }
    3435        } else if (isa<Name>(re)) {
Note: See TracChangeset for help on using the changeset viewer.