Changeset 3c5ee41 for src


Ignore:
Timestamp:
Aug 24, 2014, 7:24:09 PM (10 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:
810f975
Parents:
047d276
git-author:
Paul Brossier <piem@piem.org> (07/21/14 04:00:41)
git-committer:
Paul Brossier <piem@piem.org> (08/24/14 19:24:09)
Message:

src/spectral/phasevoc.c: fix argument checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/phasevoc.c

    r047d276 r3c5ee41  
    7777  } */
    7878
    79   if (hop_s < 1) {
     79  if ((sint_t)hop_s < 1) {
    8080    AUBIO_ERR("got hop_size %d, but can not be < 1\n", hop_s);
    8181    goto beach;
    82   } else if (win_s < 1) {
    83     AUBIO_ERR("got buffer_size %d, but can not be < 2\n", win_s);
     82  } else if ((sint_t)win_s < 1) {
     83    AUBIO_ERR("got buffer_size %d, but can not be < 1\n", win_s);
    8484    goto beach;
    8585  } else if (win_s < hop_s) {
Note: See TracChangeset for help on using the changeset viewer.