Ignore:
Timestamp:
Aug 1, 2017 7:49:34 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1994): Fixed compile warnings on MSVC 2005 & 2015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r5581 r5635  
    352352    pj_ssize_t pos = pjsua_player_get_pos(playerId); 
    353353    if (pos < 0) { 
    354         PJSUA2_RAISE_ERROR2(-pos, "AudioMediaPlayer::getPos()"); 
     354        PJSUA2_RAISE_ERROR2((pj_status_t)-pos, "AudioMediaPlayer::getPos()"); 
    355355    } 
    356356    return (pj_uint32_t)pos; 
     
    509509    } 
    510510 
    511     status = pjmedia_tonegen_play(tonegen, tones.size(), &tones[0], 
     511    status = pjmedia_tonegen_play(tonegen, (unsigned)tones.size(), &tones[0], 
    512512                                  loop? PJMEDIA_TONEGEN_LOOP : 0); 
    513513    PJSUA2_CHECK_RAISE_ERROR2(status, "ToneGenerator::play()"); 
     
    526526    } 
    527527 
    528     status = pjmedia_tonegen_play_digits(tonegen, digits.size(), &digits[0], 
     528    status = pjmedia_tonegen_play_digits(tonegen, (unsigned)digits.size(), &digits[0], 
    529529                                         loop? PJMEDIA_TONEGEN_LOOP : 0); 
    530530    PJSUA2_CHECK_RAISE_ERROR2(status, "ToneGenerator::playDigits()"); 
     
    572572    } 
    573573 
    574     digitMap.count = digit_map.size(); 
     574    digitMap.count = (unsigned)digit_map.size(); 
    575575    if (digitMap.count > PJ_ARRAY_SIZE(digitMap.digits)) 
    576576        digitMap.count = PJ_ARRAY_SIZE(digitMap.digits); 
Note: See TracChangeset for help on using the changeset viewer.