Commit eee2b3d4 authored by Robert Ricci's avatar Robert Ricci
Browse files

When checking vtypes, check not only for the type's existance in the

table, but also that there are any nodes of that type. The entry could
have been put into the table because of a set-type-limit line in the
ptop file.
parent d73c5d9d
......@@ -383,7 +383,8 @@ int type_precheck() {
bool found_match = false;
for (vector<crope>::iterator vtype_it = vclass_it->second.begin();
vtype_it != vclass_it->second.end(); vtype_it++) {
if (ptypes.find(*vtype_it) != ptypes.end()) {
tb_ptype_map::iterator mit = ptypes.find(*vtype_it);
if ((mit != ptypes.end()) && (mit->second->pnode_slots() != 0)) {
found_match = true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment