Changeset 1283

Show
Ignore:
Timestamp:
07/10/08 04:32:41 (13 years ago)
Author:
ppalmers
Message:

fix unsigned overflow bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/libstreaming/amdtp/AmdtpTransmitStreamProcessor.cpp

    r1268 r1283  
    522522    unsigned int j; 
    523523    quadlet_t *target_event; 
    524     unsigned int i; 
     524    int i; 
    525525 
    526526    float * client_buffers[4]; 
     
    542542    // this assumes that audio ports are sorted by position, 
    543543    // and that there are no gaps 
    544     for (i = 0; i < m_nb_audio_ports-4; i += 4) { 
     544    for (i = 0; i < ((int)m_nb_audio_ports)-4; i += 4) { 
    545545        struct _MBLA_port_cache *p; 
    546546 
     
    614614    // do remaining ports 
    615615    // NOTE: these can be time-SSE'd 
    616     for (; i < m_nb_audio_ports; i++) { 
     616    for (; i < (int)m_nb_audio_ports; i++) { 
    617617        struct _MBLA_port_cache &p = m_audio_ports.at(i); 
    618618        target_event = (quadlet_t *)(data + i); 
     
    714714    unsigned int j; 
    715715    quadlet_t *target_event; 
    716     unsigned int i; 
     716    int i; 
    717717 
    718718    uint32_t *client_buffers[4]; 
     
    728728    // this assumes that audio ports are sorted by position, 
    729729    // and that there are no gaps 
    730     for (i = 0; i < m_nb_audio_ports-4; i += 4) { 
     730    for (i = 0; i < ((int)m_nb_audio_ports)-4; i += 4) { 
    731731        struct _MBLA_port_cache *p; 
    732732 
     
    788788    // do remaining ports 
    789789    // NOTE: these can be time-SSE'd 
    790     for (; i < m_nb_audio_ports; i++) { 
     790    for (; i < ((int)m_nb_audio_ports); i++) { 
    791791        struct _MBLA_port_cache &p = m_audio_ports.at(i); 
    792792        target_event = (quadlet_t *)(data + i);