diff options
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]; |