From 67dc4b38fab410dfa3a94fed5261bd1414c3e689 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 17 Oct 2009 05:36:14 +0000 Subject: Fix ellipses unification logic. git-svn-id: http://svn.drobilla.net/resp/tuplr@244 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/unify.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/unify.cpp b/src/unify.cpp index 278f3a5..dbc938f 100644 --- a/src/unify.cpp +++ b/src/unify.cpp @@ -136,9 +136,8 @@ unify(const Constraints& constraints) else cp.push_back(Constraint(st, tt, st->loc)); } - if (si == s->end() && ti == t->end() - || (*ti)->as()->kind == AType::DOTS - || (*si)->as()->kind == AType::DOTS) + if (si == s->end() && (ti == t->end() || (*ti)->as()->kind == AType::DOTS) + || ti == t->end() && (*si)->as()->kind == AType::DOTS) return unify(cp); } throw Error(s->loc ? s->loc : t->loc, -- cgit v1.2.1