summaryrefslogtreecommitdiffstats
path: root/lib/kvo.c
diff options
context:
space:
mode:
authorEthan Werner <mail@ethanwerner.com>2026-08-09 15:02:21 +0400
committerEthan Werner <mail@ethanwerner.com>2026-08-09 15:02:21 +0400
commit3d92926a902017e7cf1f5738e99ff62da596ce12 (patch)
tree2b55422c26a48759d56fa91f06df24449e9dfa88 /lib/kvo.c
parent07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff)
refactormain
Diffstat (limited to 'lib/kvo.c')
-rw-r--r--lib/kvo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kvo.c b/lib/kvo.c
index 229fad8..1e2a15b 100644
--- a/lib/kvo.c
+++ b/lib/kvo.c
@@ -24,7 +24,7 @@ ts_parameter_t const ts_kvo_p = { .n_inputs = 5, .n_outputs = 2, .n_constants =
uint_t ts_kvo_offset( ts_constant_t const *c )
{
( void )c;
- return ( c ? ((ts_kvo_params_t *)c)->k1 > 10 ? ((ts_kvo_params_t *)c)->k1 : 10 : 0 );
+ return ( c ? ((ts_kvo_params_t const *)c)->k1 > 10 ? ((ts_kvo_params_t const *)c)->k1 : 10 : 0 );
}
int ts_kvo(
@@ -35,8 +35,8 @@ int ts_kvo(
{
TS_PROLOGUE( ts_kvo_p );
if ( !c ) return -1;
- uint_t k1 = ((ts_kvo_params_t *)c)->k1;
- fp_t f0_raw = ((ts_kvo_params_t *)c)->f0;
+ uint_t k1 = ((ts_kvo_params_t const *)c)->k1;
+ fp_t f0_raw = ((ts_kvo_params_t const *)c)->f0;
if (isnan(f0_raw) || isinf(f0_raw) || f0_raw < 0) return -1;
uint_t k10 = (uint_t)f0_raw;
if (k1 == 0) return -1;