From 9dc74f15acec8daac019f21ec0834827a5c5fd51 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 31 Mar 2009 00:51:31 +0000 Subject: Fix polymorphic functions (somewhat). git-svn-id: http://svn.drobilla.net/resp/tuplr@112 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- typing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'typing.cpp') diff --git a/typing.cpp b/typing.cpp index 285173b..a1c544f 100644 --- a/typing.cpp +++ b/typing.cpp @@ -283,7 +283,7 @@ Subst::compose(const Subst& delta, const Subst& gamma) // TAPL 22.1.1 { Subst r; for (Subst::const_iterator g = gamma.begin(); g != gamma.end(); ++g) { - Subst::const_iterator d = delta.find(g->second); + Subst::const_iterator d = delta.find(*g->second); r.insert(make_pair(g->first, ((d != delta.end()) ? d : g)->second)); } for (Subst::const_iterator d = delta.begin(); d != delta.end(); ++d) { -- cgit v1.2.1