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/pool_caching.c

    r4298 r4537  
    192192 
    193193    /* Mark factory data */ 
    194     pool->factory_data = (void*) (long) idx; 
     194    pool->factory_data = (void*) (pj_ssize_t) idx; 
    195195 
    196196    /* Increment used count. */ 
     
    252252     * Otherwise put the pool in our recycle list. 
    253253     */ 
    254     i = (unsigned) (unsigned long) pool->factory_data; 
     254    i = (unsigned) (unsigned long) (pj_ssize_t) pool->factory_data; 
    255255 
    256256    pj_assert(i<PJ_CACHING_POOL_ARRAY_SIZE); 
     
    280280    if (detail) { 
    281281        pj_pool_t *pool = (pj_pool_t*) cp->used_list.next; 
    282         pj_uint32_t total_used = 0, total_capacity = 0; 
     282        pj_size_t total_used = 0, total_capacity = 0; 
    283283        PJ_LOG(3,("cachpool", "  Dumping all active pools:")); 
    284284        while (pool != (void*)&cp->used_list) { 
    285             unsigned pool_capacity = pj_pool_get_capacity(pool); 
     285            pj_size_t pool_capacity = pj_pool_get_capacity(pool); 
    286286            PJ_LOG(3,("cachpool", "   %16s: %8d of %8d (%d%%) used",  
    287287                                  pj_pool_getobjname(pool),  
Note: See TracChangeset for help on using the changeset viewer.