Changeset 396103a


Ignore:
Timestamp:
Mar 18, 2013, 4:46:42 PM (11 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:
93e3463
Parents:
ba507ff
Message:

src/fvec.c: fvec_copy: only get min if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fvec.c

    rba507ff r396103a  
    8888void fvec_copy(fvec_t *s, fvec_t *t) {
    8989  uint_t j;
    90   uint_t length = MIN(s->length, t->length);
     90  uint_t length = t->length;
    9191  if (s->length != t->length) {
    92     AUBIO_WRN("trying to copy %d elements to %d elements \n",
    93             s->length, t->length);
     92    AUBIO_WRN("trying to copy %d elements to %d elements \n",
     93        s->length, t->length);
     94    length = MIN(s->length, t->length);
    9495  }
    9596  for (j=0; j< length; j++) {
     
    9798  }
    9899}
    99 
Note: See TracChangeset for help on using the changeset viewer.