Fix incorrect loop termination test when searching for typedefs.
This commit is contained in:
parent
1147881176
commit
ed75bc22ec
2
pform.cc
2
pform.cc
|
|
@ -911,7 +911,7 @@ data_type_t* pform_test_type_identifier(const struct vlltype&loc, const char*txt
|
|||
PPackage*pkg = find_potential_import(loc, cur_scope, name, false, false);
|
||||
if (pkg) {
|
||||
cur = pkg->typedefs.find(name);
|
||||
if (cur != cur_scope->typedefs.end())
|
||||
if (cur != pkg->typedefs.end())
|
||||
return cur->second;
|
||||
|
||||
// Not a type. Give up.
|
||||
|
|
|
|||
Loading…
Reference in New Issue