{
size_t nIndex = specMap.size() + 1; // 0 is reserved for "0"-spec
assert( nIndex < 1u << 31);
- specMap[*it] = std::make_pair(unsigned( nIndex), rule);
+ specMap[*it] = std::make_pair(int(nIndex), rule);
}
}
{
size_t nIndex = specMap.size() + 1; // 0 is reserved for "0"-spec
assert( nIndex < 1u << 31);
- specMap[*it] = std::make_pair(unsigned( nIndex), rule);
+ specMap[*it] = std::make_pair(int(nIndex), rule);
}
}
};
typedef std::set<std::string> CondList;
-typedef std::pair<unsigned, RegExp*> NRegExp;
+typedef std::pair<int, RegExp*> NRegExp;
typedef std::map<std::string, NRegExp> RegExpMap;
typedef std::vector<std::string> RegExpIndices;
typedef std::list<RuleOp*> RuleOpList;