Skip to content

Commit

Permalink
fix asserts in bernoulli_mod_p_harvey
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed Mar 1, 2022
1 parent 8971bee commit 076249e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bernoulli/mod_p_harvey.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ expander_expand(mp_ptr res, expander_t * this, ulong s, ulong n)
{
slong i;

FLINT_ASSERT(s > 0 && s < p);
FLINT_ASSERT(s > 0 && s < this->p);
FLINT_ASSERT(n >= 1);
FLINT_ASSERT(n <= max_words);
FLINT_ASSERT(n <= this->max_words);

if (s == 1)
{
Expand Down

0 comments on commit 076249e

Please sign in to comment.