From 3d92926a902017e7cf1f5738e99ff62da596ce12 Mon Sep 17 00:00:00 2001 From: Ethan Werner Date: Sun, 9 Aug 2026 15:02:21 +0400 Subject: refactor --- lib/choppiness_index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/choppiness_index.c') diff --git a/lib/choppiness_index.c b/lib/choppiness_index.c index 55ecb46..332e8b3 100644 --- a/lib/choppiness_index.c +++ b/lib/choppiness_index.c @@ -20,7 +20,7 @@ ts_parameter_t const ts_choppiness_index_p = { .n_inputs = 3, .n_outputs = 1, .n uint_t ts_choppiness_index_offset( ts_constant_t const *c ) { ( void )c; - return ( c ? 2 * ((ts_choppiness_index_params_t *)c)->k : 0 ); + return ( c ? 2 * ((ts_choppiness_index_params_t const *)c)->k : 0 ); } int ts_choppiness_index( @@ -31,7 +31,7 @@ int ts_choppiness_index( { TS_PROLOGUE( ts_choppiness_index_p ); if ( !c ) return -1; - uint_t k = ((ts_choppiness_index_params_t *)c)->k; + uint_t k = ((ts_choppiness_index_params_t const *)c)->k; uint_t range_period = 2 * k; if (k == 0 || n < range_period) return -1; -- cgit v1.3.1