Ignore:
Timestamp:
Jul 2, 2013 11:45:57 AM (9 years ago)
Author:
riza
Message:

Re #1680:

  • Win64 Project properties modification, using x64 as target machine.
  • Fix incorrect data type which might result in unsafe code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/msg_test.c

    r4537 r4550  
    18891889        struct hdr_test_t  *test = &hdr_test_data[i]; 
    18901890        pj_str_t hname; 
    1891         pj_size_t len; 
     1891        pj_ssize_t len; 
    18921892        int parsed_len; 
    18931893        pj_pool_t *pool; 
     
    19961996        unsigned print; 
    19971997    } run[COUNT]; 
    1998     unsigned i, max; 
    1999     int avg_len; 
     1998    unsigned i, max, avg_len; 
    20001999    char desc[250]; 
    20012000    pj_status_t status; 
     
    20192018    /* Calculate average message length */ 
    20202019    for (i=0, avg_len=0; i<PJ_ARRAY_SIZE(test_array); ++i) { 
    2021         avg_len += (int)test_array[i].len; 
     2020        avg_len += (unsigned)test_array[i].len; 
    20222021    } 
    20232022    avg_len /= PJ_ARRAY_SIZE(test_array); 
Note: See TracChangeset for help on using the changeset viewer.