Skip to content

Commit

Permalink
Merge pull request #1084 from ampli/bangbang
Browse files Browse the repository at this point in the history
is_expression_optional(): Fix comparison to Exptag_none
  • Loading branch information
linas authored Jan 21, 2020
2 parents 9da1368 + 030e49d commit e695e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion link-grammar/dict-common/print-dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static bool is_expression_optional(const Exp *e)

return (e->type == OR_type) && (o != NULL) && (o->type == AND_type) &&
(NULL == o->operand_first) && (o->cost == 0) &&
(o->tag_type = Exptag_none);
(o->tag_type == Exptag_none);
}

static void print_expression_parens(Dictionary dict, dyn_str *e, const Exp *n,
Expand Down

0 comments on commit e695e28

Please sign in to comment.