Ignore:
Timestamp:
Feb 24, 2014 9:02:44 AM (9 years ago)
Author:
nanang
Message:

Re #1680: Fixed compile warnings on VS2005 for x64/win64 config.

File:
1 edited

Legend:

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

    r4704 r4761  
    196196on_error: 
    197197    output->slen = op - output->ptr; 
    198     return ip - token.ptr; 
     198    return (unsigned)(ip - token.ptr); 
    199199} 
    200200 
     
    335335    } 
    336336 
    337     *size = (buffer + *size) - st.scanner.curptr; 
     337    *size = (unsigned)((buffer + *size) - st.scanner.curptr); 
    338338 
    339339    pj_scan_fini(&st.scanner); 
     
    472472        } 
    473473 
    474         CHECK( st->writer( buf, op-buf, st->user_data) ); 
     474        CHECK( st->writer( buf, (unsigned)(op-buf), st->user_data) ); 
    475475        op = buf; 
    476476    } 
     
    550550            { 
    551551                CHECK( st->writer( st->space, 
    552                                    PJ_JSON_NAME_MIN_LEN - elem->name.slen, 
     552                                   (unsigned)(PJ_JSON_NAME_MIN_LEN - 
     553                                              elem->name.slen), 
    553554                                   st->user_data) ); 
    554555            } 
Note: See TracChangeset for help on using the changeset viewer.