Changeset 10a6f7d


Ignore:
Timestamp:
Jul 16, 2012, 12:35:56 AM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
3cd2434
Parents:
17fc762
Message:

src/tempo/beattracking.c: cast to avoid signed/unsigned comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/beattracking.c

    r17fc762 r10a6f7d  
    160160  for (i = 1; i < laglen - 1; i++) {
    161161    for (a = 1; a <= numelem; a++) {
    162       for (b = (1 - a); b < a; b++) {
     162      for (b = (1 - a); b < (sint_t)a; b++) {
    163163        bt->acfout->data[i] += bt->acf->data[a * (i + 1) + b - 1]
    164164            * 1. / (2. * a - 1.);
     
    300300    for (i = 1; i < laglen - 1; i++) {
    301301      for (a = 1; a <= bt->timesig; a++) {
    302         for (b = (1 - a); b < a; b++) {
     302        for (b = (1 - a); b < (sint_t)a; b++) {
    303303          acfout->data[i] += acf->data[a * (i + 1) + b - 1];
    304304        }
Note: See TracChangeset for help on using the changeset viewer.