From 7c8420433827def2e65bde3d7e7807c57a3f34f0 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 31 Jul 2010 16:32:05 +0200 Subject: [PATCH] src/tempo/beattracking.c: declare b as signed integer, thanks to Lennart Denninger --- src/tempo/beattracking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tempo/beattracking.c b/src/tempo/beattracking.c index f3e0b80a..2c24561f 100644 --- a/src/tempo/beattracking.c +++ b/src/tempo/beattracking.c @@ -135,7 +135,7 @@ aubio_beattracking_do (aubio_beattracking_t * bt, fvec_t * dfframe, smpl_t phase; // beat alignment (step - lastbeat) smpl_t beat; // beat position smpl_t bp; // beat period - uint_t a, b; // used to build shift invariant comb filterbank + uint_t a; sint_t b; // used to build shift invariant comb filterbank uint_t kmax; // number of elements used to find beat phase /* copy dfframe, apply detection function weighting, and revert */ @@ -275,7 +275,7 @@ fvec_gettimesig (fvec_t * acf, uint_t acflen, uint_t gp) void aubio_beattracking_checkstate (aubio_beattracking_t * bt) { - uint_t i, j, a, b; + uint_t i, j, a; sint_t b; uint_t flagconst = 0; sint_t counter = bt->counter; uint_t flagstep = bt->flagstep; -- 2.26.2