diff options
Diffstat (limited to 'lib/choppiness_index.c')
| -rw-r--r-- | lib/choppiness_index.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |