Changeset 4537 for pjproject/trunk/pjlib/src/pj/os_core_win32.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_win32.c
r3999 r4537 409 409 else 410 410 pj_ansi_snprintf(thread->obj_name, sizeof(thread->obj_name), 411 "thr%p", (void*) thread->idthread);411 "thr%p", (void*)(pj_ssize_t)thread->idthread); 412 412 413 413 rc = pj_thread_local_set(thread_tls_id, thread); … … 500 500 501 501 #if defined(PJ_OS_HAS_CHECK_STACK) && PJ_OS_HAS_CHECK_STACK!=0 502 rec->stk_size = stack_size ? stack_size : 0xFFFFFFFFUL;502 rec->stk_size = stack_size ? (pj_uint32_t)stack_size : 0xFFFFFFFFUL; 503 503 rec->stk_max_usage = 0; 504 504 #endif … … 635 635 636 636 /* Calculate current usage. */ 637 usage = (&stk_ptr > thread->stk_start) ? &stk_ptr - thread->stk_start : 638 thread->stk_start - &stk_ptr; 637 usage = (&stk_ptr > thread->stk_start) ? 638 (pj_uint32_t)(&stk_ptr - thread->stk_start) : 639 (pj_uint32_t)(thread->stk_start - &stk_ptr); 639 640 640 641 /* Assert if stack usage is dangerously high. */
Note: See TracChangeset
for help on using the changeset viewer.