diff options
Diffstat (limited to 'lib/prings_special_k.c')
| -rw-r--r-- | lib/prings_special_k.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prings_special_k.c b/lib/prings_special_k.c index 91a40ba..9191567 100644 --- a/lib/prings_special_k.c +++ b/lib/prings_special_k.c @@ -23,7 +23,7 @@ ts_parameter_t const ts_prings_special_k_p = { .n_inputs = 4, .n_outputs = 2, .n uint_t ts_prings_special_k_offset( ts_constant_t const *c ) { ( void )c; - return ( c ? ((ts_prings_special_k_params_t *)c)->k1 > 0 && ((ts_prings_special_k_params_t *)c)->k2 > 0 ? ((ts_prings_special_k_params_t *)c)->k1 + ((ts_prings_special_k_params_t *)c)->k2 - 2 : 0 : 0 ); + return ( c ? ((ts_prings_special_k_params_t const *)c)->k1 > 0 && ((ts_prings_special_k_params_t const *)c)->k2 > 0 ? ((ts_prings_special_k_params_t const *)c)->k1 + ((ts_prings_special_k_params_t const *)c)->k2 - 2 : 0 : 0 ); } int ts_prings_special_k( @@ -34,8 +34,8 @@ int ts_prings_special_k( { TS_PROLOGUE( ts_prings_special_k_p ); if ( !c ) return -1; - uint_t k1 = ((ts_prings_special_k_params_t *)c)->k1; - uint_t k2 = ((ts_prings_special_k_params_t *)c)->k2; + uint_t k1 = ((ts_prings_special_k_params_t const *)c)->k1; + uint_t k2 = ((ts_prings_special_k_params_t const *)c)->k2; if (k1 == 0 || k2 == 0) return -1; fp_t ema = 0; |