Changeset 1731


Ignore:
Timestamp:
Jan 23, 2008 8:23:12 PM (12 years ago)
Author:
bennylp
Message:

Fixed integer conversion/format warning on x86_64 Linux

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/crc32.c

    r1003 r1731  
    155155    pj_uint32_t crc = ctx->crc_state ^ CRC32_NEGL; 
    156156 
    157     for( ; (((pj_uint32_t)data) & 0x03) && nbytes > 0; --nbytes) { 
     157    for( ; (((unsigned long)data) & 0x03) && nbytes > 0; --nbytes) { 
    158158        crc = crc_tab[CRC32_INDEX(crc) ^ *data++] ^ CRC32_SHIFTED(crc); 
    159159    } 
  • pjproject/trunk/pjnath/src/pjnath/ice_session.c

    r1654 r1731  
    743743        len = pj_ansi_snprintf(buffer, bufsize, 
    744744                               "%d: [%d] %s:%d-->%s:%d", 
    745                                GET_CHECK_ID(clist, check), 
     745                               (int)GET_CHECK_ID(clist, check), 
    746746                               check->lcand->comp_id, 
    747747                               laddr, (int)pj_ntohs(lcand->addr.ipv4.sin_port), 
  • pjproject/trunk/pjnath/src/pjnath/ice_strans.c

    r1654 r1731  
    284284    tsx_id.a1 = 0; 
    285285    tsx_id.a2 = comp_id; 
    286     tsx_id.a3 = (pj_uint32_t) ice_st; 
     286    tsx_id.a3 = (pj_uint32_t) (unsigned long) ice_st; 
    287287    pj_memcpy(comp->ka_tsx_id, &tsx_id, sizeof(comp->ka_tsx_id)); 
    288288 
Note: See TracChangeset for help on using the changeset viewer.