Ignore:
Timestamp:
Jun 19, 2013 6:47:43 AM (11 years ago)
Author:
riza
Message:

Re #1680: Add initial support for Win64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_parser.c

    r4445 r4537  
    246246{ 
    247247    char *new_param, *p; 
    248     int len; 
     248    pj_size_t len; 
    249249 
    250250    len = param->slen + pname->slen + pvalue->slen + 3; 
     
    252252     
    253253    if (param->slen) { 
    254         int old_len = param->slen; 
     254        pj_size_t old_len = param->slen; 
    255255        pj_memcpy(p, param->ptr, old_len); 
    256256        p += old_len; 
     
    561561 
    562562    /* Calculate hash value. */ 
    563     rec.hname_hash = pj_hash_calc(0, rec.hname, rec.hname_len); 
     563    rec.hname_hash = pj_hash_calc(0, rec.hname, (unsigned)rec.hname_len); 
    564564 
    565565    /* Get the pos to insert the new handler. */ 
     
    596596                                               pjsip_parse_hdr_func *fptr) 
    597597{ 
    598     unsigned i, len; 
     598    unsigned i; 
     599    pj_size_t len; 
    599600    char hname_lcase[PJSIP_MAX_HNAME_LEN+1]; 
    600601    pj_status_t status; 
     
    682683 
    683684    /* First, common case, try to find handler with exact name */ 
    684     hash = pj_hash_calc(0, hname->ptr, hname->slen); 
     685    hash = pj_hash_calc(0, hname->ptr, (unsigned)hname->slen); 
    685686    handler = find_handler_imp(hash, hname); 
    686687    if (handler) 
     
    10651066 
    10661067                body->data = scanner->curptr; 
    1067                 body->len = scanner->end - scanner->curptr; 
     1068                body->len = (unsigned)(scanner->end - scanner->curptr); 
    10681069                body->print_body = &pjsip_print_text_body; 
    10691070                body->clone_data = &pjsip_clone_text_data; 
     
    22792280 
    22802281    if (parsed_len) { 
    2281         *parsed_len = (scanner.curptr - scanner.begin); 
     2282        *parsed_len = (unsigned)(scanner.curptr - scanner.begin); 
    22822283    } 
    22832284 
Note: See TracChangeset for help on using the changeset viewer.