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