Changeset 4897


Ignore:
Timestamp:
Aug 21, 2014 3:33:36 AM (10 years ago)
Author:
nanang
Message:

Misc (re #1751): Fixed miscellaneous MSVC warnings.

Location:
pjproject/trunk/pjsip/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r4889 r4897  
    30863086        if (status == PJ_SUCCESS) { 
    30873087            int addr_len = pj_sockaddr_get_len(&ai.ai_addr); 
    3088             pj_uint16_t port = dinfo.addr.port; 
     3088            pj_uint16_t port = (pj_uint16_t)dinfo.addr.port; 
    30893089 
    30903090            if (port==0) { 
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r4845 r4897  
    371371                                     void *usr_data) 
    372372{ 
     373    PJ_UNUSED_ARG(port); 
    373374    AudioMediaPlayer *player = (AudioMediaPlayer*)usr_data; 
    374375    return player->onEof() ? PJ_SUCCESS : PJ_EEOF; 
     
    577578    for (i=0; i<digitMap.count; ++i) { 
    578579        digitMap.digits[i].digit = digit_map[i].digit.c_str()[0]; 
    579         digitMap.digits[i].freq1 = digit_map[i].freq1; 
    580         digitMap.digits[i].freq2 = digit_map[i].freq2; 
     580        digitMap.digits[i].freq1 = (short)digit_map[i].freq1; 
     581        digitMap.digits[i].freq2 = (short)digit_map[i].freq2; 
    581582    } 
    582583 
Note: See TracChangeset for help on using the changeset viewer.