Fix incorrect loop termination test when searching for typedefs.

This commit is contained in:
Martin Whitaker 2019-10-03 00:28:36 +01:00
parent 1147881176
commit ed75bc22ec
1 changed files with 1 additions and 1 deletions

View File

@ -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); PPackage*pkg = find_potential_import(loc, cur_scope, name, false, false);
if (pkg) { if (pkg) {
cur = pkg->typedefs.find(name); cur = pkg->typedefs.find(name);
if (cur != cur_scope->typedefs.end()) if (cur != pkg->typedefs.end())
return cur->second; return cur->second;
// Not a type. Give up. // Not a type. Give up.