Changeset e141b23


Ignore:
Timestamp:
Nov 28, 2016, 5:31:45 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler, yinfft+
Children:
9ad0dcc
Parents:
7e78ad8
Message:

src/{fmat,fvec}.c: avoid integer division

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/fmat.c

    r7e78ad8 re141b23  
    111111  uint_t i,j;
    112112  for (i=0; i< s->height; i++) {
    113     for (j=0; j< FLOOR(s->length/2); j++) {
     113    for (j=0; j< FLOOR((smpl_t)s->length/2); j++) {
    114114      ELEM_SWAP(s->data[i][j], s->data[i][s->length-1-j]);
    115115    }
  • src/fvec.c

    r7e78ad8 re141b23  
    9191void fvec_rev(fvec_t *s) {
    9292  uint_t j;
    93   for (j=0; j< FLOOR(s->length/2); j++) {
     93  for (j=0; j< FLOOR((smpl_t)s->length/2); j++) {
    9494    ELEM_SWAP(s->data[j], s->data[s->length-1-j]);
    9595  }
Note: See TracChangeset for help on using the changeset viewer.