- Timestamp:
- Feb 24, 2014 9:02:44 AM (11 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/json_test.c
r4704 r4761 64 64 pool = pj_pool_create(mem, "json", 1000, 1000, NULL); 65 65 66 size = strlen(json_doc1);66 size = (unsigned)strlen(json_doc1); 67 67 elem = pj_json_parse(pool, json_doc1, &size, &err); 68 68 if (!elem) { … … 71 71 } 72 72 73 size = strlen(json_doc1) * 2;73 size = (unsigned)strlen(json_doc1) * 2; 74 74 out_buf = pj_pool_alloc(pool, size); 75 75 -
pjproject/trunk/pjlib-util/src/pjlib-util/json.c
r4704 r4761 196 196 on_error: 197 197 output->slen = op - output->ptr; 198 return ip - token.ptr;198 return (unsigned)(ip - token.ptr); 199 199 } 200 200 … … 335 335 } 336 336 337 *size = ( buffer + *size) - st.scanner.curptr;337 *size = (unsigned)((buffer + *size) - st.scanner.curptr); 338 338 339 339 pj_scan_fini(&st.scanner); … … 472 472 } 473 473 474 CHECK( st->writer( buf, op-buf, st->user_data) );474 CHECK( st->writer( buf, (unsigned)(op-buf), st->user_data) ); 475 475 op = buf; 476 476 } … … 550 550 { 551 551 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), 553 554 st->user_data) ); 554 555 } -
pjproject/trunk/pjlib/src/pj/errno.c
r4613 r4761 110 110 len = pj_ansi_snprintf( buf, size, "Unknown pjlib error %d", code); 111 111 if (len < 1 || len >= (int)size) 112 len = size - 1;112 len = (int)(size - 1); 113 113 return len; 114 114 } … … 206 206 207 207 if (len < 1 || len >= (int)bufsize) { 208 len = bufsize - 1;208 len = (int)(bufsize - 1); 209 209 buf[len] = '\0'; 210 210 } -
pjproject/trunk/pjlib/src/pj/log.c
r4624 r4761 285 285 if (thread_suspended_tls_id != -1) 286 286 { 287 pj_thread_local_set(thread_suspended_tls_id, (void*)PJ_FALSE); 287 pj_thread_local_set(thread_suspended_tls_id, 288 (void*)(pj_size_t)PJ_FALSE); 288 289 } 289 290 else -
pjproject/trunk/pjsip/src/pjsua2/json.cpp
r4704 r4761 181 181 "Document already initialized"); 182 182 183 unsigned size = input.size();183 unsigned size = (unsigned)input.size(); 184 184 char *buffer = (char*)pj_pool_alloc(pool, size+1); 185 185 unsigned parse_size = (unsigned)size; -
pjproject/trunk/pjsip/src/pjsua2/siptypes.cpp
r4704 r4761 164 164 ts.password = str2Pj(this->password); 165 165 ts.method = this->method; 166 ts.ciphers_num = this->ciphers.size();166 ts.ciphers_num = (unsigned)this->ciphers.size(); 167 167 // The following will only work if sizeof(enum)==sizeof(int) 168 168 pj_assert(sizeof(ts.ciphers[0]) == sizeof(int)); … … 425 425 pjMsgBody.clone_data = &pjsip_clone_text_data; 426 426 pjMsgBody.data = (void*)body.c_str(); 427 pjMsgBody.len = body.size();427 pjMsgBody.len = (unsigned)body.size(); 428 428 pjMpp.body = &pjMsgBody; 429 429
Note: See TracChangeset
for help on using the changeset viewer.