From: Anton Mitrofanov Date: Sun, 23 Feb 2014 11:52:57 +0000 (+0400) Subject: Fix pointer cast warning for 64-bit builds X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=8a2c8f64c4264e020224cfa34e0bb00990b0b1aa;p=x264.git Fix pointer cast warning for 64-bit builds --- diff --git a/common/cpu.h b/common/cpu.h index 158e102e..3c10cd22 100644 --- a/common/cpu.h +++ b/common/cpu.h @@ -58,7 +58,7 @@ void x264_safe_intel_cpu_indicator_init( void ); * if it doesn't). */ #if (ARCH_X86 || HAVE_32B_STACK_ALIGNMENT) && HAVE_MMX -int x264_stack_align( void (*func)(), ... ); +intptr_t x264_stack_align( void (*func)(), ... ); #define x264_stack_align(func,...) x264_stack_align((void (*)())func, __VA_ARGS__) #else #define x264_stack_align(func,...) func(__VA_ARGS__) diff --git a/encoder/encoder.c b/encoder/encoder.c index 4f426eea..e5b58f5c 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -2557,7 +2557,7 @@ static ALWAYS_INLINE void x264_bitstream_restore( x264_t *h, x264_bs_bak_t *bak, } } -static int x264_slice_write( x264_t *h ) +static intptr_t x264_slice_write( x264_t *h ) { int i_skip; int mb_xy, i_mb_x, i_mb_y;