Ignore:
Timestamp:
Jun 19, 2013 6:47:43 AM (11 years ago)
Author:
riza
Message:

Re #1680: Add initial support for Win64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_win32.c

    r3999 r4537  
    409409    else 
    410410        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); 
    412412     
    413413    rc = pj_thread_local_set(thread_tls_id, thread); 
     
    500500 
    501501#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; 
    503503    rec->stk_max_usage = 0; 
    504504#endif 
     
    635635 
    636636    /* 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); 
    639640 
    640641    /* Assert if stack usage is dangerously high. */ 
Note: See TracChangeset for help on using the changeset viewer.