Changeset 1632

Show
Ignore:
Timestamp:
08/27/09 13:56:52 (11 years ago)
Author:
ppalmers
Message:

fix byte-swapping bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/libutil/ByteSwap.h

    r1378 r1632  
    165165        nb_elements--; 
    166166    } 
     167 
     168    if(nb_elements == 0) { 
     169        return; 
     170    } 
     171 
    167172    assert((((unsigned long)data) & 0xF) == 0); 
    168173 
     
    213218        nb_elements--; 
    214219    } 
     220 
     221    if(nb_elements == 0) { 
     222        return; 
     223    } 
     224 
    215225    assert((((unsigned long)data) & 0xF) == 0); 
    216226