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/zigzag.c | |
| parent | 07e18043145f3d91c8ea7ec3ad41b3c905585277 (diff) | |
Diffstat (limited to 'lib/zigzag.c')
| -rw-r--r-- | lib/zigzag.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/zigzag.c b/lib/zigzag.c index 50549e2..db4a5f2 100644 --- a/lib/zigzag.c +++ b/lib/zigzag.c @@ -35,9 +35,8 @@ int ts_zigzag( { TS_PROLOGUE( ts_zigzag_p ); if ( !c ) return -1; - if (n == 0) return -1; - fp_t threshold = ((ts_zigzag_params_t *)c)->threshold; + fp_t threshold = ((ts_zigzag_params_t const *)c)->threshold; if (threshold <= 0 || isnan(threshold) || isinf(threshold)) return -1; y[0][0] = x[0][0]; |