From 79cb08d128b3c6562dd313e39c1546e34749adf6 Mon Sep 17 00:00:00 2001 From: konablend Date: Thu, 25 Jun 2009 07:43:51 +0000 Subject: - cleanup. fixed hb_thread_to_integer() on darwin to cast pointer cleanly for both 32-bit and 64-bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2620 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/ports.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb') diff --git a/libhb/ports.c b/libhb/ports.c index 40183015f..d6232884f 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -273,7 +273,7 @@ static uint64_t hb_thread_to_integer( const hb_thread_t* t ) #if defined( _WIN32 ) || defined( __MINGW32__ ) return (uint64_t)(ptrdiff_t)t->thread.p; #elif defined( SYS_DARWIN ) - return (uint64_t)(ptrdiff_t)t->thread; + return (unsigned long)t->thread; #else return (uint64_t)t->thread; #endif -- cgit v1.2.3