Skip to content

Commit

Permalink
Fixes missing comparison in eq_pprod_hobj (#520)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Hader <[email protected]>
  • Loading branch information
Ovascos and Thomas Hader authored Jun 18, 2024
1 parent f067614 commit 558d951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terms/terms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ static bool eq_pprod_hobj(pprod_term_hobj_t *o, int32_t i) {

table = o->tbl;

return kind_for_idx(table, i) == POWER_PRODUCT && pprod_for_idx(table, i);
return kind_for_idx(table, i) == POWER_PRODUCT && pprod_for_idx(table, i) == o->r;
}

static bool eq_poly_hobj(poly_term_hobj_t *o, int32_t i) {
Expand Down

0 comments on commit 558d951

Please sign in to comment.