From c27e35a669befb4dbe758e29e2f8367edc2a347c Mon Sep 17 00:00:00 2001 From: jtlap Date: Fri, 8 Dec 2023 21:01:15 +0100 Subject: [PATCH] bad asserts --- include/kyosu/types/impl/besselr/cb_jyr.hpp | 4 ++-- include/kyosu/types/impl/detail/bessel_jyr.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/kyosu/types/impl/besselr/cb_jyr.hpp b/include/kyosu/types/impl/besselr/cb_jyr.hpp index 73b572b0..f71c0a85 100644 --- a/include/kyosu/types/impl/besselr/cb_jyr.hpp +++ b/include/kyosu/types/impl/besselr/cb_jyr.hpp @@ -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); diff --git a/include/kyosu/types/impl/detail/bessel_jyr.hpp b/include/kyosu/types/impl/detail/bessel_jyr.hpp index fbdbc931..3413bb49 100644 --- a/include/kyosu/types/impl/detail/bessel_jyr.hpp +++ b/include/kyosu/types/impl/detail/bessel_jyr.hpp @@ -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);