Skip to content
Snippets Groups Projects
Commit b3201c10 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

fix reference assignment to temporary

parent bae8dd09
No related merge requests found
......@@ -49,7 +49,7 @@ PointAgreement::BaseRetValPtr PointAgreement::apply_internal(const FunExecContex
// don't bother checking t2 unless current t1_tag matches enough categories
if (attribs->matching_categories(t1_tag) >= min_card) {
foreach (const Corpus2::Lexeme& t2_lex, t2->lexemes()) {
Corpus2::Tag& intersection = t1_tag.get_masked(t2_lex.tag());
Corpus2::Tag intersection = t1_tag.get_masked(t2_lex.tag());
// if the intersection matches enough categories we have agreement
if (attribs->matching_categories(intersection) >= min_card) {
return Predicate::True(context);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment