Changeset 472


Ignore:
Timestamp:
May 24, 2006 10:25:34 AM (19 years ago)
Author:
bennylp
Message:

Cleanup warnings with MSVC 2003

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/scanner.h

    r123 r472  
    514514PJ_INLINE(int) pj_scan_get_col( const pj_scanner *scanner ) 
    515515{ 
    516     return scanner->curptr - scanner->start_line; 
     516    return (int)(scanner->curptr - scanner->start_line); 
    517517} 
    518518 
  • pjproject/trunk/pjlib/include/pj/string.h

    r354 r472  
    9090{ 
    9191    str->ptr = (char*)s; 
    92     str->slen = s ? strlen(s) : 0; 
     92    str->slen = s ? (pj_ssize_t)strlen(s) : 0; 
    9393    return str; 
    9494} 
     
    106106{ 
    107107    str->ptr = ptr; 
    108     str->slen = length; 
     108    str->slen = (pj_ssize_t)length; 
    109109    return str; 
    110110} 
     
    122122{ 
    123123    str->ptr = src; 
    124     str->slen = src ? strlen(src) : 0; 
     124    str->slen = src ? (pj_ssize_t)strlen(src) : 0; 
    125125    return str; 
    126126} 
     
    138138{ 
    139139    str->ptr = begin; 
    140     str->slen = end-begin; 
     140    str->slen = (pj_ssize_t)(end-begin); 
    141141    return str; 
    142142} 
Note: See TracChangeset for help on using the changeset viewer.