Skip to content

Commit

Permalink
bad asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlap committed Dec 8, 2023
1 parent e3f78f1 commit c27e35a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/kyosu/types/impl/besselr/cb_jyr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ namespace kyosu::_
{
int n = int(v);
int an = eve::abs(n);
EVE_ASSERT(size(js) > an, "not enough room in js");
EVE_ASSERT(size(ys) > an, "not enough room in ys");
EVE_ASSERT(size(cjv) > an, "not enough room in js");
EVE_ASSERT(size(cyv) > an, "not enough room in ys");
if (eve::is_flint(v))
{
return cb_jyn(int(v), z, cjv, cyv);
Expand Down
4 changes: 2 additions & 2 deletions include/kyosu/types/impl/detail/bessel_jyr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ namespace kyosu::_
{
EVE_ASSERT(is_not_flint(v), "v must not be a flint");
int n = int(v);
EVE_ASSERT(size(js) > n, "not enough room in js");
EVE_ASSERT(size(ys) > n, "not enough room in ys");
EVE_ASSERT(size(cjv) > n, "not enough room in js");
EVE_ASSERT(size(cyv) > n, "not enough room in ys");
auto v0 = frac(v); // v = n+v0 0 < v0 < 1 as v is not a flint
// compute cjv0, cjv1, cyv0, cyv1;
auto [cjv0, cyv0, cjv1, cyv1] = kyosu::_::cb_jyr01(v0, z);
Expand Down

0 comments on commit c27e35a

Please sign in to comment.