Ignore:
Timestamp:
Mar 5, 2013 3:12:32 AM (12 years ago)
Author:
riza
Message:

Misc (re #1559): fixed compile errors/warnings on MSVC

File:
1 edited

Legend:

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

    r4373 r4412  
    744744    /* Copy binding port setting to STUN setting */ 
    745745    pj_sockaddr_init(ice_cfg.af, &ice_cfg.stun.cfg.bound_addr, 
    746                      &cfg->bound_addr, cfg->port); 
    747     ice_cfg.stun.cfg.port_range = cfg->port_range; 
     746                     &cfg->bound_addr, (pj_uint16_t)cfg->port); 
     747    ice_cfg.stun.cfg.port_range = (pj_uint16_t)cfg->port_range; 
    748748    if (cfg->port != 0 && ice_cfg.stun.cfg.port_range == 0) 
    749         ice_cfg.stun.cfg.port_range = pjsua_var.ua_cfg.max_calls * 10; 
     749        ice_cfg.stun.cfg.port_range =  
     750                                 (pj_uint16_t)(pjsua_var.ua_cfg.max_calls * 10); 
    750751 
    751752    /* Copy QoS setting to STUN setting */ 
     
    777778        /* Copy binding port setting to TURN setting */ 
    778779        pj_sockaddr_init(ice_cfg.af, &ice_cfg.turn.cfg.bound_addr, 
    779                          &cfg->bound_addr, cfg->port); 
    780         ice_cfg.turn.cfg.port_range = cfg->port_range; 
     780                         &cfg->bound_addr, (pj_uint16_t)cfg->port); 
     781        ice_cfg.turn.cfg.port_range = (pj_uint16_t)cfg->port_range; 
    781782        if (cfg->port != 0 && ice_cfg.turn.cfg.port_range == 0) 
    782             ice_cfg.turn.cfg.port_range = pjsua_var.ua_cfg.max_calls * 10; 
     783            ice_cfg.turn.cfg.port_range =  
     784                                 (pj_uint16_t)(pjsua_var.ua_cfg.max_calls * 10); 
    783785    } 
    784786 
Note: See TracChangeset for help on using the changeset viewer.