VirtualBox

Changeset 55324 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Apr 17, 2015 12:10:07 PM (10 years ago)
Author:
vboxsync
Message:

SB16: Warning fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r55074 r55324  
    14701470uint32_t lsbindex (uint32_t u)
    14711471{
    1472     return popcount ((u&-u)-1); /** @todo r=andy Un/signed mismatch? */
     1472    return popcount ((u & -(int32_t)u) - 1);
    14731473}
    14741474#endif
     
    16611661}
    16621662
    1663 static int sb16WriteAudio(PSB16STATE pThis, int nchan, int dma_pos,
    1664                           int dma_len, int len)
    1665 {
    1666     uint8_t tmpbuf[_4K]; /** @todo Have a buffer on the heap. */
    1667 
    1668     int cbToWrite = len;
    1669     int cbWrittenTotal = 0;
     1663static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos,
     1664                          uint32_t dma_len, int len)
     1665{
     1666    uint8_t     tmpbuf[_4K]; /** @todo Have a buffer on the heap. */
     1667    uint32_t    cbToWrite = len;
     1668    uint32_t    cbWrittenTotal = 0;
    16701669
    16711670    while (cbToWrite)
     
    16761675#else
    16771676        uint32_t cbWrittenMin = UINT32_MAX;
    1678         size_t cbToRead;
     1677        uint32_t cbToRead;
    16791678        uint32_t cbRead;
    16801679#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette