From 3d92926a902017e7cf1f5738e99ff62da596ce12 Mon Sep 17 00:00:00 2001 From: Ethan Werner Date: Sun, 9 Aug 2026 15:02:21 +0400 Subject: refactor --- lib/kvo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/kvo.c') 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; -- cgit v1.3.1