Changeset 472
- Timestamp:
- May 24, 2006 10:25:34 AM (19 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/include/pjlib-util/scanner.h
r123 r472 514 514 PJ_INLINE(int) pj_scan_get_col( const pj_scanner *scanner ) 515 515 { 516 return scanner->curptr - scanner->start_line;516 return (int)(scanner->curptr - scanner->start_line); 517 517 } 518 518 -
pjproject/trunk/pjlib/include/pj/string.h
r354 r472 90 90 { 91 91 str->ptr = (char*)s; 92 str->slen = s ? strlen(s) : 0;92 str->slen = s ? (pj_ssize_t)strlen(s) : 0; 93 93 return str; 94 94 } … … 106 106 { 107 107 str->ptr = ptr; 108 str->slen = length;108 str->slen = (pj_ssize_t)length; 109 109 return str; 110 110 } … … 122 122 { 123 123 str->ptr = src; 124 str->slen = src ? strlen(src) : 0;124 str->slen = src ? (pj_ssize_t)strlen(src) : 0; 125 125 return str; 126 126 } … … 138 138 { 139 139 str->ptr = begin; 140 str->slen = end-begin;140 str->slen = (pj_ssize_t)(end-begin); 141 141 return str; 142 142 }
Note: See TracChangeset
for help on using the changeset viewer.