Changeset a6356d4


Ignore:
Timestamp:
Mar 17, 2017, 7:02:17 PM (2 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
33cc712
Parents:
95af88b
Message:

src/utils/ringbuffer.c: avoid declaration after statement [msvc]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/utils/ringbuffer.c

    r95af88b ra6356d4  
    4545  if (o->write_pos + write <= o->buffer->length) {
    4646    // write everything at once
    47     fvec_t tmp; tmp.data = o->buffer->data + o->write_pos; tmp.length = write;
    48     fvec_t tmpin; tmpin.data = input->data; tmpin.length = write;
     47    fvec_t tmp, tmpin;
     48    tmp.data = o->buffer->data + o->write_pos; tmp.length = write;
     49    tmpin.data = input->data; tmpin.length = write;
    4950    //assert(tmpin.length == tmp.length);
    5051    fvec_copy(&tmpin, &tmp);
     
    111112  if (o->read_pos + request <= o->buffer->length) {
    112113    // read everything at once
    113     fvec_t tmp; tmp.data = o->buffer->data + o->read_pos; tmp.length = request;
    114     fvec_t tmpout; tmpout.data = output->data; tmpout.length = request;
     114    fvec_t tmp, tmpout;
     115    tmp.data = o->buffer->data + o->read_pos; tmp.length = request;
     116    tmpout.data = output->data; tmpout.length = request;
    115117    //assert(tmpout.length == tmp.length);
    116118    fvec_copy(&tmp, &tmpout);
Note: See TracChangeset for help on using the changeset viewer.