From 3d92926a902017e7cf1f5738e99ff62da596ce12 Mon Sep 17 00:00:00 2001 From: Ethan Werner Date: Sun, 9 Aug 2026 15:02:21 +0400 Subject: refactor --- lib/zigzag.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/zigzag.c') 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]; -- cgit v1.3.1