diff options
| author | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
|---|---|---|
| committer | Ethan Werner <mail@ethanwerner.com> | 2026-08-09 15:02:21 +0400 |
| commit | 3d92926a902017e7cf1f5738e99ff62da596ce12 (patch) | |
| tree | 2b55422c26a48759d56fa91f06df24449e9dfa88 /lib/prings_special_k.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
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; |