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/average_exponential_triple.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
refactormain
Diffstat (limited to 'lib/average_exponential_triple.c')
| -rw-r--r-- | lib/average_exponential_triple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/average_exponential_triple.c b/lib/average_exponential_triple.c index 467d87f..793d048 100644 --- a/lib/average_exponential_triple.c +++ b/lib/average_exponential_triple.c @@ -33,8 +33,8 @@ int ts_average_exponential_triple( TS_PROLOGUE( ts_average_exponential_triple_p ); if ( !c ) return -1; TS_CHECK_INPUT(x, x_n, n); - fp_t a = ((ts_average_exponential_triple_params_t *)c)->a; - if (a == 0 || n == 0) return -1; + fp_t a = ((ts_average_exponential_triple_params_t const *)c)->a; + if (a == 0) return -1; fp_t ema1 = x[0][0]; fp_t ema2 = x[0][0]; |