From ed75bc22ec6f754dbb739e1ecab8736dc908de34 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Thu, 3 Oct 2019 00:28:36 +0100 Subject: [PATCH] Fix incorrect loop termination test when searching for typedefs. --- pform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pform.cc b/pform.cc index d1c457fc5..c8a42bb17 100644 --- a/pform.cc +++ b/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.