Skip to content

Commit

Permalink
bypass debug assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed Feb 4, 2025
1 parent 6061274 commit 09b89dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gr_poly/set_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ _gr_poly_set_str(gr_ptr res, const char * s, const char * x, slong len, gr_ctx_t
{
_gr_vec_swap(res, t->coeffs, t->length, ctx);
status |= _gr_vec_zero(GR_ENTRY(res, t->length, ctx->sizeof_elem), len - t->length, ctx);
/* make sure t is a valid polynomial before clearing
just so that we don't strike the debug assertion in gr_poly_clear */
_gr_poly_set_length(t, 0, ctx);
}
else
{
Expand Down

0 comments on commit 09b89dd

Please sign in to comment.