diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-07-23 14:38:49 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-07-23 14:38:49 +0000 |
commit | 506a01d84b9577c45ec6f95be15345017c96b809 (patch) | |
tree | 6597111b01ad386a463d90d27aa7973494a394db /pjlib/src/pj/pool_caching.c | |
parent | 0e925222f36d4f3d34a88cbe149f8f761d47ac26 (diff) |
Added 64bit Linux target (x86_64), also fixed compilation warnings when compiling for this target
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@624 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/pool_caching.c')
-rw-r--r-- | pjlib/src/pj/pool_caching.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pj/pool_caching.c b/pjlib/src/pj/pool_caching.c index e0eecd4d..192bf380 100644 --- a/pjlib/src/pj/pool_caching.c +++ b/pjlib/src/pj/pool_caching.c @@ -175,7 +175,7 @@ static pj_pool_t* cpool_create_pool(pj_pool_factory *pf, pj_list_insert_before( &cp->used_list, pool ); /* Mark factory data */ - pool->factory_data = (void*) idx; + pool->factory_data = (void*) (long) idx; /* Increment used count. */ ++cp->used_count; @@ -225,7 +225,7 @@ static void cpool_release_pool( pj_pool_factory *pf, pj_pool_t *pool) /* * Otherwise put the pool in our recycle list. */ - i = (unsigned)pool->factory_data; + i = (unsigned) (unsigned long) pool->factory_data; pj_assert(i<PJ_CACHING_POOL_ARRAY_SIZE); if (i >= PJ_CACHING_POOL_ARRAY_SIZE ) { |